fixed nontype error (#27428)

This commit is contained in:
David Newswanger 2017-07-28 12:20:09 -04:00 committed by Trishna Guha
parent 3b1f2aeb16
commit c594f1e1c9
2 changed files with 33 additions and 7 deletions

View file

@ -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