fix keep remote files

pull/35733/merge
Brian Coca 6 years ago committed by Brian Coca
parent dfcae9fc8e
commit 3b0d864683

@ -298,6 +298,9 @@ class ActionBase(with_metaclass(ABCMeta, object)):
def _remove_tmp_path(self, tmp_path):
'''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):
cmd = self._connection._shell.remove(tmp_path, recurse=True)
# If we have gotten here we have a working ssh configuration.

Loading…
Cancel
Save