Work around for cwd stat problems with run_command and sudo

This fixes issue #6443
This commit is contained in:
Dan Koch 2014-03-12 14:59:50 -04:00
parent 2c7d58abe0
commit bbf320fd22

View file

@ -1074,6 +1074,8 @@ class AnsibleModule(object):
try:
if cwd:
os.chdir(cwd)
cmd = subprocess.Popen(args, **kwargs)
if data: