mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
Parse multiple values for single key in cmdline facts (#49591)
* Facts parsing for cmdline can now handle multiple values for a single key. * Unit tests for cmdline fact parsing * Review comments Fixes: #22766 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
e98d1b1be5
commit
57d85031d7
4 changed files with 98 additions and 0 deletions
|
@ -55,6 +55,12 @@ In Ansible 2.7 and older::
|
|||
|
||||
{{ foo.bar.baz if (foo is defined and foo.bar is defined and foo.bar.baz is defined) else 'DEFAULT' }}
|
||||
|
||||
Command line facts
|
||||
------------------
|
||||
|
||||
``cmdline`` facts returned in system will be deprecated in favor of ``proc_cmdline``. This change handles special case where Kernel command line parameter
|
||||
contains multiple values with the same key.
|
||||
|
||||
Command Line
|
||||
============
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue