mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-02 12:14:25 -07:00
Remove call to parse_returned_data when removing tmpdir
_parsed_return_data should only be used with the return from a module. This location was invoking a remote shell command rather than a module so we don't want it here.
This commit is contained in:
parent
abe68d523c
commit
5ba41a9575
1 changed files with 1 additions and 2 deletions
|
@ -341,8 +341,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||||
# If ssh breaks we could leave tmp directories out on the remote system.
|
# If ssh breaks we could leave tmp directories out on the remote system.
|
||||||
tmp_rm_res = self._low_level_execute_command(cmd, sudoable=False)
|
tmp_rm_res = self._low_level_execute_command(cmd, sudoable=False)
|
||||||
|
|
||||||
tmp_rm_data = self._parse_returned_data(tmp_rm_res)
|
if tmp_rm_res.get('rc', 0) != 0:
|
||||||
if tmp_rm_data.get('rc', 0) != 0:
|
|
||||||
display.warning('Error deleting remote temporary files (rc: %s, stderr: %s})'
|
display.warning('Error deleting remote temporary files (rc: %s, stderr: %s})'
|
||||||
% (tmp_rm_res.get('rc'), tmp_rm_res.get('stderr', 'No error string available.')))
|
% (tmp_rm_res.get('rc'), tmp_rm_res.get('stderr', 'No error string available.')))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue