1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +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,6 +252,7 @@ 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'):