Adds a rescue to find_miq_request_id as a precaution in case the method fails unexpectedly. This ensures that in a worst case scenario, nil is returned, which means the log won't be saved to the database but still sent to the automation logger.
Also changed object.type.to_s.match? to object.type.to_s.include? for consistency.
Adds a rescue to
find_miq_request_id
as a precaution in case the method fails unexpectedly. This ensures that in a worst case scenario, nil is returned, which means the log won't be saved to the database but still sent to the automation logger.Also changed
object.type.to_s.match?
toobject.type.to_s.include?
for consistency.