mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
changed winrm _reset to reset and make ssh reset show warning (#42651)
* changed winrm _reset to reset and make ssh reset show warning * minor changelog update
This commit is contained in:
parent
a5fc9a17f0
commit
d723b8541d
6 changed files with 10 additions and 7 deletions
|
@ -158,7 +158,7 @@ class ActionModule(ActionBase):
|
|||
try:
|
||||
self._connection.set_option("connection_timeout",
|
||||
connect_timeout)
|
||||
self._connection._reset()
|
||||
self._connection.reset()
|
||||
except AttributeError:
|
||||
display.warning("Connection plugin does not allow the "
|
||||
"connection timeout to be overridden")
|
||||
|
@ -178,7 +178,7 @@ class ActionModule(ActionBase):
|
|||
try:
|
||||
self._connection.set_option("connection_timeout",
|
||||
connection_timeout_orig)
|
||||
self._connection._reset()
|
||||
self._connection.reset()
|
||||
except (AnsibleError, AttributeError) as e:
|
||||
display.debug("Failed to reset connection_timeout back to default: %s" % to_native(e))
|
||||
|
||||
|
@ -192,7 +192,7 @@ class ActionModule(ActionBase):
|
|||
# (another reboot occurred) we need to reset the connection
|
||||
# to make sure we are not re-using the same shell id
|
||||
try:
|
||||
self._connection._reset()
|
||||
self._connection.reset()
|
||||
except AttributeError:
|
||||
pass
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue