Commit 5c568bb0 by Dan Koch Committed by James Cammarata

Work around for cwd stat problems with run_command and sudo

This fixes issue #6443
parent baeabd91
......@@ -1049,6 +1049,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