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.
reviewable/pr18780/r1
Peter Sprygada 10 years ago
parent f7558164b5
commit 601bb9fad3

@ -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)

Loading…
Cancel
Save