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.
This commit is contained in:
parent
5eb4e0dd0d
commit
25294f40c8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue