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