Properly check for prompting state when re-using ssh connection

Fixes #13278
This commit is contained in:
James Cammarata 2015-11-24 09:09:54 -05:00
parent 96fcfe45d0
commit 65747285a4
3 changed files with 7 additions and 2 deletions

View file

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