ios_logging: change IOS command pipe to section to include (#33100) (#33116)

This improves compatibility with older IOS devices which do not
support "section" but "include" has been supported for a lot longer.
(cherry picked from commit a6e425e5a3)
pull/33166/merge
Trishna Guha 7 years ago committed by GitHub
parent ecf2dfd6d5
commit b0404dbe39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -176,6 +176,8 @@ Ansible Changes By Release
(https://github.com/ansible/ansible/pull/32710)
* Fix nxos_snmp_host bug
(https://github.com/ansible/ansible/pull/32916)
* Make IOS devices consistent ios_logging
(https://github.com/ansible/ansible/pull/33100)
<a id="2.4.1"></a>

@ -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…
Cancel
Save