summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorPeter Sprygada <privateip@users.noreply.github.com>2016-10-12 21:37:08 -0400
committerGitHub <noreply@github.com>2016-10-12 21:37:08 -0400
commit528ced6d12c143ac1c7db374711719efc9f37321 (patch)
tree27face284b17e14153791f1f9ace2d960c27fab4 /network
parent0ffd423b07b3cd5f55dacb4a4d4d831e9f5fb9ed (diff)
downloadansible-modules-core-528ced6d12c143ac1c7db374711719efc9f37321.tar.gz
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 #5181
Diffstat (limited to 'network')
-rw-r--r--network/ios/ios_config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/network/ios/ios_config.py b/network/ios/ios_config.py
index cff8ebd4..1022419a 100644
--- a/network/ios/ios_config.py
+++ b/network/ios/ios_config.py
@@ -322,8 +322,10 @@ def main():
run(module, result)
except NetworkError:
exc = get_exception()
+ module.disconnect()
module.fail_json(msg=str(exc))
+ module.disconnect()
module.exit_json(**result)