Skip to content

Commit 834bf40

Browse files
author
EarthmanT
committed
pushed
1 parent a7ac4bc commit 834bf40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cloudify_vcd/vapp_tasks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
BadRequestException,
44
MissingLinkException,
55
InvalidStateException,
6+
EntityNotFoundException,
67
OperationNotSupportedException)
78

89
from cloudify import ctx
@@ -477,6 +478,8 @@ def _delete_vm(vm_external=None,
477478
(not vcd_unresolved_vm(e) and not cannot_power_off(e)):
478479
raise
479480
last_task = None
481+
except EntityNotFoundException:
482+
ctx.logger.info('VM is deleted. Now to delete Vapp.')
480483

481484
if vm_ctx.instance.runtime_properties.get('__VM_CREATE_VAPP'):
482485
try:

0 commit comments

Comments
 (0)