From 154f3c6cd7c2ae8c7754015bbd593adddd6edbd7 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 26 Apr 2025 14:02:56 +0200 Subject: [PATCH] Add no_log=False to passphrase_encoding. --- changelogs/fragments/867-passphrase-encoding-nolog.yml | 2 ++ plugins/modules/luks_device.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/867-passphrase-encoding-nolog.yml diff --git a/changelogs/fragments/867-passphrase-encoding-nolog.yml b/changelogs/fragments/867-passphrase-encoding-nolog.yml new file mode 100644 index 00000000..fa7ceb1e --- /dev/null +++ b/changelogs/fragments/867-passphrase-encoding-nolog.yml @@ -0,0 +1,2 @@ +bugfixes: + - "luks_device - mark parameter ``passphrase_encoding`` as ``no_log=False`` to avoid confusing warning (https://github.com/ansible-collections/community.crypto/pull/867)." diff --git a/plugins/modules/luks_device.py b/plugins/modules/luks_device.py index 744b19a5..728a3c05 100644 --- a/plugins/modules/luks_device.py +++ b/plugins/modules/luks_device.py @@ -990,7 +990,7 @@ def run_module(): passphrase=dict(type='str', no_log=True), new_passphrase=dict(type='str', no_log=True), remove_passphrase=dict(type='str', no_log=True), - passphrase_encoding=dict(type='str', default='text', choices=['text', 'base64']), + passphrase_encoding=dict(type='str', default='text', choices=['text', 'base64'], no_log=False), keyslot=dict(type='int', no_log=False), new_keyslot=dict(type='int', no_log=False), remove_keyslot=dict(type='int', no_log=False),