Skip to content

Commit b883c13

Browse files
authored
Merge pull request #790 from dell/omevv_firmware/ecs02a-132_defect_fix
[omevv_firmware] : scheduled idempotency scenario failing fixed
2 parents 2a05a30 + 40b6540 commit b883c13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/modules/omevv_firmware.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -953,9 +953,9 @@ def is_update_job_allowed(self, vcenter_uuid, cluster_group_id, cluster_name):
953953
Returns:
954954
bool: True if the update job is allowed, False otherwise.
955955
"""
956-
update_job_status = self.omevv_update_obj.check_existing_update_job(vcenter_uuid,
957-
cluster_group_id)
958-
if update_job_status is not True:
956+
try:
957+
self.omevv_update_obj.check_existing_update_job(vcenter_uuid, cluster_group_id)
958+
except Exception:
959959
self.module.exit_json(msg=UPDATE_JOB_PRESENT_MSG.format(cluster_name=cluster_name),
960960
skipped=True)
961961

0 commit comments

Comments
 (0)