1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-11 10:35:34 +00:00
community.general/plugins
patchback[bot] f8e9c9ce1b
[PR #12120/d46ce24a backport][stable-13] consul_kv: add empty_value option for null Consul values (#12153)
consul_kv: add `empty_value` option for null Consul values (#12120)

* feat(consul_kv): add empty_value option for null Consul values

Add the ``empty_value`` option to the ``consul_kv`` lookup plugin, allowing
users to control what is returned when a key exists in Consul but has a
null/empty value. Defaults to ``'None'`` to preserve existing behaviour.



* feat(changelog): add fragment for PR 12120



* feat(consul_kv): make empty_value a choices option

Replace the free-form string empty_value with a choices option:
textual_none (default, legacy behaviour), python_none, empty_string.



* docs(consul_kv): use dict form for empty_value choices



---------


(cherry picked from commit d46ce24abb)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 16:59:05 +02:00
..
action [PR #12093/1bf5e6e6 backport][stable-13] iptables_state: clean up code (#12098) 2026-05-25 15:34:01 +02:00
become pfexec become plugin: fix broken defaults for illumos/SmartOS (#11623) 2026-04-25 21:12:36 +02:00
cache Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
callback [PR #12113/ef5b22d1 backport][stable-13] unixy callback: fix KeyError when task is delegated to host without ansible_host set (#12143) 2026-05-30 20:29:46 +02:00
connection saltstack connection plugin: add documentation (#11992) 2026-05-07 07:36:47 +12:00
doc_fragments [PR #11752/d4031f36 backport][stable-13] kopia: Add kopia_repository module (#12127) 2026-05-30 15:12:10 +02:00
filter [PR #12081/8faf8c38 backport][stable-13] Add from_toml filter (#12081) (#12125) 2026-05-30 15:11:41 +02:00
inventory [PR #12094/cbc6f6ee backport][stable-13] multiple: replace namedtuple with dataclass (#12102) 2026-05-25 15:59:50 +02:00
lookup [PR #12120/d46ce24a backport][stable-13] consul_kv: add empty_value option for null Consul values (#12153) 2026-05-31 16:59:05 +02:00
module_utils [PR #12119/9208cbfd backport][stable-13] xenserver_guest_info: add VDI uuid and vdi_type to disk info (#12141) 2026-05-30 20:29:53 +02:00
modules [PR #12123/49ca175f backport][stable-13] htpasswd: fix hash_scheme aliases and Apache-compatible bcrypt (#12156) 2026-05-31 16:58:57 +02:00
plugin_utils Lookup plugins: prevent using _terms for positional arguments, and reject positional arguments completely for lookups that don't use them (#12060) 2026-05-17 09:43:21 +02:00
test Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00