ios_logging: change IOS command pipe to section to include (#33100)
This improves compatibility with older IOS devices which do not support "section" but "include" has been supported for a lot longer.
This commit is contained in:
parent
a9b15ce881
commit
a6e425e5a3
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ def map_config_to_obj(module):
|
|||
obj = []
|
||||
dest_group = ('console', 'host', 'monitor', 'buffered', 'on', 'facility')
|
||||
|
||||
data = get_config(module, flags=['| section logging'])
|
||||
data = get_config(module, flags=['| include logging'])
|
||||
|
||||
for line in data.split('\n'):
|
||||
match = re.search(r'logging (\S+)', line, re.M)
|
||||
|
|
Loading…
Reference in a new issue