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:
Abhijeet Kasurde
2019-02-19 15:47:06 +05:30
committed by GitHub
parent e98d1b1be5
commit 57d85031d7
4 changed files with 98 additions and 0 deletions

View File

@@ -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
============