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
Alexei Znamensky d46ce24abb
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.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(changelog): add fragment for PR 12120

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* 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.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 20:48:48 +12:00
..
action iptables_state: clean up code (#12093) 2026-05-25 14:58:55 +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 unixy callback: fix KeyError when task is delegated to host without ansible_host set (#12113) 2026-05-30 20:02:20 +02:00
connection saltstack connection plugin: add documentation (#11992) 2026-05-07 07:36:47 +12:00
doc_fragments kopia: Add kopia_repository module (#11752) 2026-05-30 13:38:30 +02:00
filter Add from_toml filter (#12081) (#12081) 2026-05-30 13:36:38 +02:00
inventory multiple: replace namedtuple with dataclass (#12094) 2026-05-25 15:50:34 +02:00
lookup consul_kv: add empty_value option for null Consul values (#12120) 2026-05-31 20:48:48 +12:00
module_utils xenserver_guest_info: add VDI uuid and vdi_type to disk info (#12119) 2026-05-30 19:43:30 +02:00
modules parted: ignore MBR partition type codes in flags on SUSE systems (#12121) 2026-05-31 10:37:26 +12: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