mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix keep remote files
This commit is contained in:
parent
dfcae9fc8e
commit
3b0d864683
1 changed files with 3 additions and 0 deletions
|
@ -298,6 +298,9 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||||
def _remove_tmp_path(self, tmp_path):
|
def _remove_tmp_path(self, tmp_path):
|
||||||
'''Remove a temporary path we created. '''
|
'''Remove a temporary path we created. '''
|
||||||
|
|
||||||
|
if tmp_path is None and self._connection._shell.tempdir:
|
||||||
|
tmp_path = self._connection._shell.tempdir
|
||||||
|
|
||||||
if self._should_remove_tmp_path(tmp_path):
|
if self._should_remove_tmp_path(tmp_path):
|
||||||
cmd = self._connection._shell.remove(tmp_path, recurse=True)
|
cmd = self._connection._shell.remove(tmp_path, recurse=True)
|
||||||
# If we have gotten here we have a working ssh configuration.
|
# If we have gotten here we have a working ssh configuration.
|
||||||
|
|
Loading…
Add table
Reference in a new issue