1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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: