ios_cli: fix load_config exec_command (#20994)

fixes AttributeError: 'AnsibleModule' object has no attribute 'exec_command'
pull/20989/head
René Moser 8 years ago 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)

Loading…
Cancel
Save