redfish_facts: GetLogs can raise KeyError #59797
Labels
affects_2.9
This issue/PR affects Ansible v2.9
bug
This issue/PR relates to a bug.
has_pr
This issue has an associated PR.
module
This issue/PR relates to a module.
remote_management
Working Group: https://docs.ansible.com/ansible/latest/community/communication.html
support:community
This issue/PR relates to code supported by the Ansible community.
SUMMARY
The GetLogs command can raise a KeyError if any of the properties it tries to read are not present. The properties being gathered are not required, so it should not be an error condition for them to be absent.
ISSUE TYPE
COMPONENT NAME
redfish_facts.py
redfish_utils.py
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Applies to Redfish OOB controllers.
STEPS TO REPRODUCE
Run the GetLogs commands against a Redfish service that does not include one or more of these properties in the
LogServices
resources:Description
Name
Created
Message
Severity
EXPECTED RESULTS
Playbook runs without error
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: