Commit e548369d authored by Kristian Feldsam's avatar Kristian Feldsam
Browse files

Fixed crash when volatile disk(s) is used on VM

Signed-off-by: Kristian Feldsam's avatarKristián Feldsam <>
parent 47a6ceec
......@@ -88,7 +88,8 @@ for image_key in images:
if isinstance(vm.TEMPLATE.get('DISK'), list):
for vmDisk in vm.TEMPLATE.get('DISK'):
if int(vmDisk.get('IMAGE_ID')) == image.ID:
# volatile disks doesn't have IMAGE_ID attribute
if vmDisk.get('IMAGE_ID') is not None and int(vmDisk.get('IMAGE_ID')) == image.ID:
vmDiskId = int(vmDisk.get('DISK_ID'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment