summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--changelogs/fragments/84419-fix-wait_for_connection-warning.yml2
-rw-r--r--lib/ansible/plugins/connection/local.py3
2 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/fragments/84419-fix-wait_for_connection-warning.yml b/changelogs/fragments/84419-fix-wait_for_connection-warning.yml
new file mode 100644
index 0000000000..3b34fefc45
--- /dev/null
+++ b/changelogs/fragments/84419-fix-wait_for_connection-warning.yml
@@ -0,0 +1,2 @@
+bugfixes:
+ - wait_for_connection - a warning was displayed if any hosts used a local connection (https://github.com/ansible/ansible/issues/84419)
diff --git a/lib/ansible/plugins/connection/local.py b/lib/ansible/plugins/connection/local.py
index 2fa8f491a0..d77b37a43b 100644
--- a/lib/ansible/plugins/connection/local.py
+++ b/lib/ansible/plugins/connection/local.py
@@ -189,6 +189,9 @@ class Connection(ConnectionBase):
display.vvv(u"FETCH {0} TO {1}".format(in_path, out_path), host=self._play_context.remote_addr)
self.put_file(in_path, out_path)
+ def reset(self) -> None:
+ pass
+
def close(self) -> None:
""" terminate the connection; nothing to do here """
self._connected = False