Backport: ovirt_disk force wait when uploading disk (#69943)

* ovirt_disk: force wait when uploading disk

* add changelog
pull/70125/head
Martin Nečas 5 years ago committed by GitHub
parent 23761b9880
commit 34e804a4f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- "ovirt_disk: force wait when uploading disk"

@ -739,6 +739,7 @@ def main():
result_state=otypes.DiskStatus.OK if lun is None else None,
fail_condition=lambda d: d.status == otypes.DiskStatus.ILLEGAL if lun is None else False,
force_create=force_create,
_wait=True if module.params['upload_image_path'] else module.params['wait'],
)
is_new_disk = ret['changed']
ret['changed'] = ret['changed'] or disks_module.update_storage_domains(ret['id'])

Loading…
Cancel
Save