|
|
@ -232,17 +232,17 @@ def map_config_to_obj(module):
|
|
|
|
|
|
|
|
|
|
|
|
for line in data.split('\n'):
|
|
|
|
for line in data.split('\n'):
|
|
|
|
match = re.search(r'logging (\S+)', line, re.M)
|
|
|
|
match = re.search(r'logging (\S+)', line, re.M)
|
|
|
|
|
|
|
|
if match:
|
|
|
|
if match.group(1) in dest_group:
|
|
|
|
if match.group(1) in dest_group:
|
|
|
|
dest = match.group(1)
|
|
|
|
dest = match.group(1)
|
|
|
|
else:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
obj.append({'dest': dest,
|
|
|
|
obj.append({
|
|
|
|
|
|
|
|
'dest': dest,
|
|
|
|
'name': parse_name(line, dest),
|
|
|
|
'name': parse_name(line, dest),
|
|
|
|
'size': parse_size(line, dest),
|
|
|
|
'size': parse_size(line, dest),
|
|
|
|
'facility': parse_facility(line),
|
|
|
|
'facility': parse_facility(line),
|
|
|
|
'level': parse_level(line, dest)})
|
|
|
|
'level': parse_level(line, dest)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
return obj
|
|
|
|
return obj
|
|
|
|
|
|
|
|
|
|
|
|