fix keep remote files

This commit is contained in:
Brian Coca 2018-02-07 16:11:32 -05:00 committed by Brian Coca
parent dfcae9fc8e
commit 3b0d864683

View file

@ -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.