kubevirt_pvc: improve failure handling (#57163)

pull/55936/head
Mariusz Mazur 6 years ago committed by ansibot
parent 4c00fc7b32
commit cac34ac568

@ -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

Loading…
Cancel
Save