1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

fix: initialize used_size variable. it causes error if instance disks are deleted.

This commit is contained in:
catborise 2018-11-05 15:19:25 +03:00
parent fab3b2891f
commit 8ecd453efe

View file

@ -252,8 +252,9 @@ class wvmInstance(wvmConnect):
storage = None storage = None
src_fl = None src_fl = None
disk_format = None disk_format = None
used_size = None
disk_size = None disk_size = None
for disk in doc.xpath('/domain/devices/disk'): for disk in doc.xpath('/domain/devices/disk'):
device = disk.xpath('@device')[0] device = disk.xpath('@device')[0]
if device == 'disk': if device == 'disk':