Merge pull request #717 from s1113950/issue716

Handles no tmpdir in fetch command for old ansible versions
pull/722/head
Steven Robertson 4 years ago committed by GitHub
commit 921f3aa98c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -157,6 +157,10 @@ class ActionModule(ActionBase):
result.update(dict(changed=False, md5sum=local_md5, file=source, dest=dest, checksum=local_checksum))
finally:
self._remove_tmp_path(self._connection._shell.tmpdir)
try:
self._remove_tmp_path(self._connection._shell.tmpdir)
except AttributeError:
# .tmpdir was added to ShellModule in v2.6.0, so old versions don't have it
pass
return result

Loading…
Cancel
Save