From 817881d64fd84903be7acdafe780afed6e09cd69 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Wed, 5 Oct 2016 20:14:32 -0400 Subject: [PATCH] fixes problem where wrong ACL could be selected (#3099) This fixes a bug where the wrong acl name could be matched in the running config if the desired acl name is a starting subset. --- lib/ansible/modules/extras/network/asa/asa_acl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/network/asa/asa_acl.py b/lib/ansible/modules/extras/network/asa/asa_acl.py index 55d3fd58cdd..fd547c69f89 100644 --- a/lib/ansible/modules/extras/network/asa/asa_acl.py +++ b/lib/ansible/modules/extras/network/asa/asa_acl.py @@ -153,7 +153,7 @@ def get_config(module, acl_name): filtered_config = list() for item in contents.split('\n'): - if item.startswith('access-list %s' % acl_name): + if item.startswith('access-list %s ' % acl_name): filtered_config.append(item) return NetworkConfig(indent=1, contents='\n'.join(filtered_config))