diff options
author | spyinx <166288294+spyinx@users.noreply.github.com> | 2024-12-10 16:13:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-10 16:13:22 +0100 |
commit | 563906687bb293b685c18af637fcb1ce78c63a40 (patch) | |
tree | 1bcf0d0f72a96779d831ad91a6cac2649268e433 | |
parent | copy, prevent internal options in task (#84422) (diff) | |
download | ansible-563906687bb293b685c18af637fcb1ce78c63a40.tar.xz ansible-563906687bb293b685c18af637fcb1ce78c63a40.zip |
Fix a debug message error (#84426)
-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) |