summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNilashish Chakraborty <nilashishchakraborty8@gmail.com>2019-02-28 19:43:34 +0100
committerNathaniel Case <this.is@nathanielca.se>2019-02-28 19:43:34 +0100
commit5d8f307116a258fe8279ca33f1de08515c3e761f (patch)
tree0216df5715becd2df327e2fd9f1a958fd8f2175f
parentproperly convert inputs to handle bytes/unicode (#53072) (diff)
downloadansible-5d8f307116a258fe8279ca33f1de08515c3e761f.tar.xz
ansible-5d8f307116a258fe8279ca33f1de08515c3e761f.zip
Revert back to using section (#53069)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
-rw-r--r--lib/ansible/modules/network/ios/ios_user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/network/ios/ios_user.py b/lib/ansible/modules/network/ios/ios_user.py
index 2ab4c3b5b7..d3aeb83332 100644
--- a/lib/ansible/modules/network/ios/ios_user.py
+++ b/lib/ansible/modules/network/ios/ios_user.py
@@ -357,7 +357,7 @@ def parse_password_type(data):
def map_config_to_obj(module):
- data = get_config(module, flags=['| include username'])
+ data = get_config(module, flags=['| section username'])
match = re.findall(r'(?:^(?:u|\s{2}u))sername (\S+)', data, re.M)
if not match: