Last active
April 23, 2018 20:54
-
-
Save ganeshrn/e5334f1700ca03b2727b8efb70b67393 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff | |
diff --git a/bin/ansible-connection b/bin/ansible-connection | |
index ed6070b..57fd128 100755 | |
--- a/bin/ansible-connection | |
+++ b/bin/ansible-connection | |
@@ -161,7 +161,7 @@ def main(): | |
result = {} | |
messages = list() | |
socket_path = None | |
- | |
+ display.display("ansible-connection: main: %s" % os.getppid(), log_only=True) | |
# Need stdin as a byte stream | |
if PY3: | |
stdin = sys.stdin.buffer | |
diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py | |
index ab6915d..598992a 100644 | |
--- a/lib/ansible/executor/task_executor.py | |
+++ b/lib/ansible/executor/task_executor.py | |
@@ -882,6 +882,7 @@ class TaskExecutor: | |
''' | |
Starts the persistent connection | |
''' | |
+ display.display("task_executor: _start_connection: %s" % os.getppid(), log_only=True) | |
master, slave = pty.openpty() | |
python = sys.executable | |
diff --git a/lib/ansible/plugins/connection/network_cli.py b/lib/ansible/plugins/connection/network_cli.py | |
index 3f198d1..bc1eaf5 100644 | |
--- a/lib/ansible/plugins/connection/network_cli.py | |
+++ b/lib/ansible/plugins/connection/network_cli.py | |
@@ -280,6 +280,7 @@ class Connection(ConnectionBase): | |
''' | |
Connects to the remote device and starts the terminal | |
''' | |
+ display.display("network_cli: _connect: %s" % os.getppid(), log_only=True) | |
if self.connected: | |
return |
Author
ganeshrn
commented
Apr 23, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment