diff options
author | Peter Sprygada <privateip@users.noreply.github.com> | 2017-03-25 05:19:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-25 05:19:48 +0100 |
commit | 77ce83fe22cf4fde6d9179a075337448c67f9715 (patch) | |
tree | daf92f13f61d3c7515392716233e93425d1503cd /bin | |
parent | Fix a few problems with the metadata extraction for docs (#22963) (diff) | |
download | ansible-77ce83fe22cf4fde6d9179a075337448c67f9715.tar.xz ansible-77ce83fe22cf4fde6d9179a075337448c67f9715.zip |
fixes ansible-connection working directory (#22964)
When ansible-connection forks the process, it changed the working
directory to /. This patch will prevent ansible-connection from
changing the working directory in the forked process.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ansible-connection | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ansible-connection b/bin/ansible-connection index 89e1158ef2..da1b4eec52 100755 --- a/bin/ansible-connection +++ b/bin/ansible-connection @@ -63,7 +63,7 @@ def do_fork(): if pid > 0: return pid - os.chdir("/") + #os.chdir("/") os.setsid() os.umask(0) @@ -119,6 +119,7 @@ class Server(): self.play_context = play_context display.display("starting new persistent socket with path %s" % path, log_only=True) + display.display('current working directory is %s' % os.getcwd(), log_only=True) self._start_time = datetime.datetime.now() |