New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse multiple values for single key in cmdline facts #49591
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a new key, not give 2 diff results on same one, leave current as is and create new fact that always returns this as a list, then we can deal with deprecating/removing the current fact.
CI failure in unit tests: https://app.shippable.com/github/ansible/ansible/runs/99138/9/tests |
@bcoca Could you please take another look into this ? Thanks. |
* Facts parsing for cmdline can now handle multiple values for a single key. * Unit tests for cmdline fact parsing Fixes: ansible#22766 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
SUMMARY
Fixes: #22766
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE
COMPONENT NAME
changelogs/fragments/22766-fact-cmdline-return_multiple_lvm_values.yaml
lib/ansible/module_utils/facts/system/cmdline.py
test/units/module_utils/facts/system/test_cmdline.py