ios_cli: fix load_config exec_command (#20994)
fixes AttributeError: 'AnsibleModule' object has no attribute 'exec_command'
This commit is contained in:
parent
1df7d95cec
commit
62c97cdd3e
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ def load_config(module, commands):
|
|||
for command in to_list(commands):
|
||||
if command == 'end':
|
||||
continue
|
||||
rc, out, err = module.exec_command(command)
|
||||
rc, out, err = conn.exec_command(command)
|
||||
if rc != 0:
|
||||
module.fail_json(msg=err, command=command, rc=rc)
|
||||
|
||||
|
|
Loading…
Reference in a new issue