diff --git a/changelogs/fragments/69943-ovirt_disk-force-wait-when-uploading-disk.yml b/changelogs/fragments/69943-ovirt_disk-force-wait-when-uploading-disk.yml new file mode 100644 index 00000000000..bc1a9f619ea --- /dev/null +++ b/changelogs/fragments/69943-ovirt_disk-force-wait-when-uploading-disk.yml @@ -0,0 +1,2 @@ +bugfixes: +- "ovirt_disk: force wait when uploading disk" diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_disk.py b/lib/ansible/modules/cloud/ovirt/ovirt_disk.py index 38322eb8079..601c6fabdbc 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_disk.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_disk.py @@ -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'])