mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
minor bug fix to pass path to difference() in ios_config
The ios_config module needs to pass the path kwarg to difference when specifying match=exact or strict.
This commit is contained in:
committed by
Matt Clay
parent
f2c324facc
commit
d339004437
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user