ios_config will now explicitly disconnect from remote host (#5247)
The ios_config module will now explicitly send a disconnect to the remote host at the conclusion of the module run ref #5181pull/4420/head
parent
522ed054f7
commit
f106ff9e77
|
@ -322,8 +322,10 @@ def main():
|
||||||
run(module, result)
|
run(module, result)
|
||||||
except NetworkError:
|
except NetworkError:
|
||||||
exc = get_exception()
|
exc = get_exception()
|
||||||
|
module.disconnect()
|
||||||
module.fail_json(msg=str(exc))
|
module.fail_json(msg=str(exc))
|
||||||
|
|
||||||
|
module.disconnect()
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue