mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-19 03:10:22 -07:00
ovirt_disk: Fix fail state condition of disk creation (#35093)
This commit is contained in:
parent
eacb4d0a4a
commit
542cd37f6e
1 changed files with 1 additions and 0 deletions
|
@ -616,6 +616,7 @@ def main():
|
||||||
ret = disks_module.create(
|
ret = disks_module.create(
|
||||||
entity=disk,
|
entity=disk,
|
||||||
result_state=otypes.DiskStatus.OK if lun is None else None,
|
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']
|
is_new_disk = ret['changed']
|
||||||
ret['changed'] = ret['changed'] or disks_module.update_storage_domains(ret['id'])
|
ret['changed'] = ret['changed'] or disks_module.update_storage_domains(ret['id'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue