diff options
-rw-r--r-- | changelogs/fragments/fix-display-bug-in-action-plugin.yml | 2 | ||||
-rw-r--r-- | lib/ansible/plugins/action/__init__.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/changelogs/fragments/fix-display-bug-in-action-plugin.yml b/changelogs/fragments/fix-display-bug-in-action-plugin.yml new file mode 100644 index 0000000000..067a7bb8ce --- /dev/null +++ b/changelogs/fragments/fix-display-bug-in-action-plugin.yml @@ -0,0 +1,2 @@ +bugfixes: + - Fix a display.debug statement with the wrong param in _get_diff_data() method diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index 370742487c..8d11b7fb3d 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -1372,7 +1372,7 @@ class ActionBase(ABC): elif peek_result.get('size') and C.MAX_FILE_SIZE_FOR_DIFF > 0 and peek_result['size'] > C.MAX_FILE_SIZE_FOR_DIFF: diff['dst_larger'] = C.MAX_FILE_SIZE_FOR_DIFF else: - display.debug(u"Slurping the file %s" % source) + display.debug(u"Slurping the file %s" % destination) dest_result = self._execute_module( module_name='ansible.legacy.slurp', module_args=dict(path=destination), task_vars=task_vars, persist_files=True) |