mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-23 22:55:23 +00:00
fix: initialize used_size variable. it causes error if instance disks are deleted.
This commit is contained in:
parent
fab3b2891f
commit
8ecd453efe
1 changed files with 2 additions and 1 deletions
|
@ -252,8 +252,9 @@ class wvmInstance(wvmConnect):
|
|||
storage = None
|
||||
src_fl = None
|
||||
disk_format = None
|
||||
used_size = None
|
||||
disk_size = None
|
||||
|
||||
|
||||
for disk in doc.xpath('/domain/devices/disk'):
|
||||
device = disk.xpath('@device')[0]
|
||||
if device == 'disk':
|
||||
|
|
Loading…
Reference in a new issue