ios_cli: fix load_config exec_command (#20994)

fixes AttributeError: 'AnsibleModule' object has no attribute 'exec_command'
This commit is contained in:
René Moser 2017-02-03 03:13:03 +01:00 committed by Peter Sprygada
parent 1df7d95cec
commit 62c97cdd3e

View file

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