From 05887b8f866cc6f73bf981e60f0a7dc434abacdc Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Wed, 7 Sep 2016 19:42:59 -0400 Subject: [PATCH] adds path kwarg when performing config diff checks in ios_config --- network/ios/ios_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/ios/ios_config.py b/network/ios/ios_config.py index 3a3ff2ce419..c45238dc2f0 100644 --- a/network/ios/ios_config.py +++ b/network/ios/ios_config.py @@ -242,8 +242,6 @@ def check_args(module, warnings): if module.params['parents']: if not module.params['lines'] or module.params['src']: warnings.append('ignoring unnecessary argument parents') - if module.params['match'] == 'none' and module.params['replace']: - warnings.append('ignorning unnecessary argument replace') if module.params['force']: warnings.append('The force argument is deprecated, please use ' 'match=none instead. This argument will be ' @@ -298,7 +296,9 @@ def run(module, result): if match != 'none': config = get_config(module, result) - configobjs = candidate.difference(config, match=match, replace=replace) + path = module.params['parents'] + configobjs = candidate.difference(config, path=path, match=match, + replace=replace) else: config = None configobjs = candidate.items