From 601bb9fad3ac315caa94abc4b4e714bfe97153fb Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Wed, 13 Jul 2016 14:45:26 -0700 Subject: [PATCH] bug fix in ios_config module for handling config contents Config contents when passed via argument were returning a string but the module expects an instance of NetworkConfig. This fixes that problem. --- network/ios/ios_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/ios/ios_config.py b/network/ios/ios_config.py index aaa2671a5e2..b88fa48bc95 100644 --- a/network/ios/ios_config.py +++ b/network/ios/ios_config.py @@ -202,7 +202,7 @@ def check_args(module, warnings): def get_candidate(module): candidate = NetworkConfig(indent=1) if module.params['src']: - candidate = module.params['src'] + candidate.load(module.params['src']) elif module.params['lines']: parents = module.params['parents'] or list() candidate.add(module.params['lines'], parents=parents)