summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/action/__init__.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2021-05-26 10:27:39 -0700
committerMatt Clay <matt@mystile.com>2021-05-26 11:37:58 -0700
commite5c3f6ce990081da47910e20f29f58f69bc44fa4 (patch)
tree939f3f86968b7c152b8b658799dc28837c63b212 /lib/ansible/plugins/action/__init__.py
parenta61821b62668aaa857daec1d65256adcf9ff6a01 (diff)
downloadansible-e5c3f6ce990081da47910e20f29f58f69bc44fa4.tar.gz
Revert "aync_status rewrite (#74577)"
This reverts commit b6de1984db13312ce7520cd6660cd0aaf9266ac2.
Diffstat (limited to 'lib/ansible/plugins/action/__init__.py')
-rw-r--r--lib/ansible/plugins/action/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py
index efccc41914..1ea7063ea2 100644
--- a/lib/ansible/plugins/action/__init__.py
+++ b/lib/ansible/plugins/action/__init__.py
@@ -440,16 +440,16 @@ class ActionBase(with_metaclass(ABCMeta, object)):
'''Determine if temporary path should be deleted or kept by user request/config'''
return tmp_path and self._cleanup_remote_tmp and not C.DEFAULT_KEEP_REMOTE_FILES and "-tmp-" in tmp_path
- def _remove_tmp_path(self, tmp_path, force=False):
+ def _remove_tmp_path(self, tmp_path):
'''Remove a temporary path we created. '''
if tmp_path is None and self._connection._shell.tmpdir:
tmp_path = self._connection._shell.tmpdir
- if force or self._should_remove_tmp_path(tmp_path):
+ 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 connection configuration.
- # If the connection breaks we could leave tmp directories out on the remote system.
+ # If we have gotten here we have a working ssh configuration.
+ # If ssh breaks we could leave tmp directories out on the remote system.
tmp_rm_res = self._low_level_execute_command(cmd, sudoable=False)
if tmp_rm_res.get('rc', 0) != 0: