mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
ios_cli: fix load_config exec_command (#20994)
fixes AttributeError: 'AnsibleModule' object has no attribute 'exec_command'
This commit is contained in:
committed by
Peter Sprygada
parent
1df7d95cec
commit
62c97cdd3e
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user