Commit bbf320fd by Dan Koch

Work around for cwd stat problems with run_command and sudo

This fixes issue #6443
parent 2c7d58ab
......@@ -1074,6 +1074,8 @@ class AnsibleModule(object):
try:
if cwd:
os.chdir(cwd)
cmd = subprocess.Popen(args, **kwargs)
if data:
......
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