mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 01:33:09 +00:00
Revert back to using section (#53069)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
This commit is contained in:
committed by
Nathaniel Case
parent
55dc63be3a
commit
5d8f307116
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user