Merge pull request #4751 from privateip/ios_config

minor bug fix to pass path to difference() in ios_config
This commit is contained in:
Peter Sprygada 2016-09-08 19:54:27 -04:00 committed by GitHub
commit 99ddf08e2b

View file

@ -291,13 +291,14 @@ def load_config(module, commands, result):
def run(module, result):
match = module.params['match']
replace = module.params['replace']
path = module.params['parents']
candidate = get_candidate(module)
if match != 'none':
config = get_config(module, result)
path = module.params['parents']
configobjs = candidate.difference(config, path=path, match=match,
configobjs = candidate.difference(config, path=path,match=match,
replace=replace)
else:
config = None