From 5d8f307116a258fe8279ca33f1de08515c3e761f Mon Sep 17 00:00:00 2001 From: Nilashish Chakraborty Date: Fri, 1 Mar 2019 00:13:34 +0530 Subject: [PATCH] Revert back to using section (#53069) Signed-off-by: NilashishC --- lib/ansible/modules/network/ios/ios_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: