Commit 3a5522a2 by objectified

fake being connected for logging purposes

parent 8f2a6a9f
...@@ -80,6 +80,12 @@ class Connection(ConnectionBase): ...@@ -80,6 +80,12 @@ class Connection(ConnectionBase):
def _connect(self, port=None): def _connect(self, port=None):
""" Connect to the container. Nothing to do """ """ Connect to the container. Nothing to do """
if not self._connected:
self._display.vvv("ESTABLISH LOCAL CONNECTION FOR USER: {0}".format(
self._play_context.remote_user, host=self._play_context.remote_addr)
)
self._connected = True
return self return self
def exec_command(self, cmd, tmp_path, sudo_user=None, sudoable=False, def exec_command(self, cmd, tmp_path, sudo_user=None, sudoable=False,
...@@ -162,4 +168,4 @@ class Connection(ConnectionBase): ...@@ -162,4 +168,4 @@ class Connection(ConnectionBase):
def close(self): def close(self):
""" Terminate the connection. Nothing to do for Docker""" """ Terminate the connection. Nothing to do for Docker"""
pass self._connected = False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment