adds path kwarg when performing config diff checks in ios_config

reviewable/pr18780/r1
Peter Sprygada 8 years ago
parent db18577df1
commit 05887b8f86

@ -242,8 +242,6 @@ def check_args(module, warnings):
if module.params['parents']: if module.params['parents']:
if not module.params['lines'] or module.params['src']: if not module.params['lines'] or module.params['src']:
warnings.append('ignoring unnecessary argument parents') 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']: if module.params['force']:
warnings.append('The force argument is deprecated, please use ' warnings.append('The force argument is deprecated, please use '
'match=none instead. This argument will be ' 'match=none instead. This argument will be '
@ -298,7 +296,9 @@ def run(module, result):
if match != 'none': if match != 'none':
config = get_config(module, result) 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: else:
config = None config = None
configobjs = candidate.items configobjs = candidate.items

Loading…
Cancel
Save