diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_disk.py b/lib/ansible/modules/cloud/ovirt/ovirt_disk.py index b92579649d..c452f53167 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_disk.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_disk.py @@ -616,6 +616,7 @@ def main(): ret = disks_module.create( entity=disk, result_state=otypes.DiskStatus.OK if lun is None else None, + fail_condition=lambda d: d.status == otypes.DiskStatus.ILLEGAL, ) is_new_disk = ret['changed'] ret['changed'] = ret['changed'] or disks_module.update_storage_domains(ret['id'])