diff --git a/lib/ansible/modules/cloud/kubevirt/kubevirt_pvc.py b/lib/ansible/modules/cloud/kubevirt/kubevirt_pvc.py index de70772337..8e20c996e9 100644 --- a/lib/ansible/modules/cloud/kubevirt/kubevirt_pvc.py +++ b/lib/ansible/modules/cloud/kubevirt/kubevirt_pvc.py @@ -391,6 +391,8 @@ class KubevirtPVC(KubernetesRawModule): if import_status == desired_cdi_status: return_obj = entity break + elif import_status == 'Failed': + raise CreatePVCFailed("PVC creation incomplete; importing data failed") else: return_obj = entity break