mirror of https://github.com/ansible/ansible.git
[stable-2.18] service_facts: Handle KeyError while processing service name (#85648)
* rc-status commands returns unwanted lines with service names and their status. Skip such lines while parsing service names * Handle KeyError with exception handling * Warn user about the missing service name in the given service details Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commitpull/85709/head8290912eb1) (cherry picked from commit9ed7164ed6)
parent
6e64050d0e
commit
9a4a76e3da
@ -0,0 +1,3 @@
|
||||
---
|
||||
bugfixes:
|
||||
- service_facts - skip lines which does not contain service names in openrc output (https://github.com/ansible/ansible/issues/84512).
|
||||
@ -0,0 +1,4 @@
|
||||
---
|
||||
minor_changes:
|
||||
- service_facts - warn user about missing service details instead of ignoring.
|
||||
- service_facts - handle keyerror exceptions with warning.
|
||||
Loading…
Reference in New Issue