We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94b0ebe commit 7596872Copy full SHA for 7596872
1 file changed
cloudify_libvirt/domain_tasks.py
@@ -277,9 +277,16 @@ def delete(**kwargs):
277
'Can not destroy guest domain.'
278
)
279
280
- if dom.undefineFlags(libvirt.VIR_DOMAIN_UNDEFINE_NVRAM) < 0:
281
- raise cfy_exc.NonRecoverableError(
282
- 'Can not undefine guest domain.'
283
- )
+ try:
+ if dom.undefineFlags(libvirt.VIR_DOMAIN_UNDEFINE_NVRAM) < 0:
+ raise cfy_exc.NonRecoverableError(
+ 'Can not undefine guest domain with NVRAM.'
284
+ )
285
+ except Exception as e:
286
+ ctx.logger.info("Non critical error: {}".format(str(e)))
287
+ if dom.undefine() < 0:
288
289
+ 'Can not undefine guest domain.'
290
291
finally:
292
conn.close()
0 commit comments