diff --git a/plugins/modules/omevv_firmware.py b/plugins/modules/omevv_firmware.py index 816a116d2..b1d4598dd 100644 --- a/plugins/modules/omevv_firmware.py +++ b/plugins/modules/omevv_firmware.py @@ -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)