mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Properly check for prompting state when re-using ssh connection
Fixes #13278
This commit is contained in:
parent
96fcfe45d0
commit
65747285a4
3 changed files with 7 additions and 2 deletions
|
@ -362,7 +362,7 @@ class TaskExecutor:
|
|||
self._task.args = variable_params
|
||||
|
||||
# get the connection and the handler for this execution
|
||||
if not self._connection or not getattr(self._connection, '_connected', False):
|
||||
if not self._connection or not getattr(self._connection, 'connected', False):
|
||||
self._connection = self._get_connection(variables=variables, templar=templar)
|
||||
self._connection.set_host_overrides(host=self._host)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue