mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
kubevirt_pvc: improve failure handling (#57163)
This commit is contained in:
parent
4c00fc7b32
commit
cac34ac568
1 changed files with 2 additions and 0 deletions
|
@ -391,6 +391,8 @@ class KubevirtPVC(KubernetesRawModule):
|
||||||
if import_status == desired_cdi_status:
|
if import_status == desired_cdi_status:
|
||||||
return_obj = entity
|
return_obj = entity
|
||||||
break
|
break
|
||||||
|
elif import_status == 'Failed':
|
||||||
|
raise CreatePVCFailed("PVC creation incomplete; importing data failed")
|
||||||
else:
|
else:
|
||||||
return_obj = entity
|
return_obj = entity
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue