mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
fixed nontype error (#27428)
This commit is contained in:
committed by
Trishna Guha
parent
3b1f2aeb16
commit
c594f1e1c9
@@ -232,17 +232,17 @@ def map_config_to_obj(module):
|
||||
|
||||
for line in data.split('\n'):
|
||||
match = re.search(r'logging (\S+)', line, re.M)
|
||||
if match:
|
||||
if match.group(1) in dest_group:
|
||||
dest = match.group(1)
|
||||
|
||||
if match.group(1) in dest_group:
|
||||
dest = match.group(1)
|
||||
else:
|
||||
pass
|
||||
|
||||
obj.append({'dest': dest,
|
||||
obj.append({
|
||||
'dest': dest,
|
||||
'name': parse_name(line, dest),
|
||||
'size': parse_size(line, dest),
|
||||
'facility': parse_facility(line),
|
||||
'level': parse_level(line, dest)})
|
||||
'level': parse_level(line, dest)
|
||||
})
|
||||
|
||||
return obj
|
||||
|
||||
|
||||
Reference in New Issue
Block a user