From 25294f40c892895290e78602ca83217ab2686944 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. --- lib/ansible/modules/network/ios/ios_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/ios/ios_config.py b/lib/ansible/modules/network/ios/ios_config.py index aaa2671a5e2..b88fa48bc95 100644 --- a/lib/ansible/modules/network/ios/ios_config.py +++ b/lib/ansible/modules/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)