From 627da622fea790dbf542bbeba111e71f30a38655 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 12 Sep 2016 12:29:14 -0400 Subject: [PATCH] removed chdir / as it breaks tasks fixes #17466 --- lib/ansible/modules/utilities/logic/async_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/utilities/logic/async_wrapper.py b/lib/ansible/modules/utilities/logic/async_wrapper.py index 5c658d68b81..822f9dc9d6c 100644 --- a/lib/ansible/modules/utilities/logic/async_wrapper.py +++ b/lib/ansible/modules/utilities/logic/async_wrapper.py @@ -51,7 +51,7 @@ def daemonize_self(): e = sys.exc_info()[1] sys.exit("fork #1 failed: %d (%s)\n" % (e.errno, e.strerror)) - # decouple from parent environment + # decouple from parent environment (does not chdir / to keep the directory context the same as for non async tasks) os.setsid() os.umask(int('022', 8))