ovirt_disk: Fix fail state condition of disk creation (#35093)

pull/35248/head
Ondra Machacek 7 years ago committed by ansibot
parent eacb4d0a4a
commit 542cd37f6e

@ -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'])

Loading…
Cancel
Save