From d3390044371a5b9e97a1707820580c605c5b128e Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Thu, 8 Sep 2016 15:46:39 -0400 Subject: [PATCH] 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. --- lib/ansible/modules/network/ios/ios_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/ios/ios_config.py b/lib/ansible/modules/network/ios/ios_config.py index c45238dc2f0..1050b608443 100644 --- a/lib/ansible/modules/network/ios/ios_config.py +++ b/lib/ansible/modules/network/ios/ios_config.py @@ -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