ManageIQ / manageiq-automation_engine

Automation engine for ManageIQ
Apache License 2.0
11 stars 73 forks source link

Adds a rescue to find_miq_request_id #520

Closed DavidResende0 closed 1 year ago

DavidResende0 commented 1 year ago

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.

miq-bot commented 1 year ago

Checked commit https://github.com/DavidResende0/manageiq-automation_engine/commit/2a0860f4117efaf4ad671762938115263514eecb with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint 2 files checked, 0 offenses detected Everything looks fine. :star: