From a6e425e5a35b2baae7118cb6d64b0c33e7c20fcb Mon Sep 17 00:00:00 2001 From: Steve Glendinning Date: Tue, 21 Nov 2017 03:09:51 +0000 Subject: [PATCH] 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. --- lib/ansible/modules/network/ios/ios_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/ios/ios_logging.py b/lib/ansible/modules/network/ios/ios_logging.py index 3ce53f563d5..f162df33314 100644 --- a/lib/ansible/modules/network/ios/ios_logging.py +++ b/lib/ansible/modules/network/ios/ios_logging.py @@ -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)