Skip to content

Commit

Permalink
Merge pull request #790 from dell/omevv_firmware/ecs02a-132_defect_fix
Browse files Browse the repository at this point in the history
[omevv_firmware] : scheduled idempotency scenario failing fixed
  • Loading branch information
rajshekarp87 authored Dec 30, 2024
2 parents 2a05a30 + 40b6540 commit b883c13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/modules/omevv_firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,9 @@ def is_update_job_allowed(self, vcenter_uuid, cluster_group_id, cluster_name):
Returns:
bool: True if the update job is allowed, False otherwise.
"""
update_job_status = self.omevv_update_obj.check_existing_update_job(vcenter_uuid,
cluster_group_id)
if update_job_status is not True:
try:
self.omevv_update_obj.check_existing_update_job(vcenter_uuid, cluster_group_id)
except Exception:
self.module.exit_json(msg=UPDATE_JOB_PRESENT_MSG.format(cluster_name=cluster_name),
skipped=True)

Expand Down

0 comments on commit b883c13

Please sign in to comment.