Commit 22334ebe authored by Benziane Chakib's avatar Benziane Chakib

Bug fix with add_volume which takes now an int as space size

parent 661bad54
......@@ -402,7 +402,7 @@ class LibvirtHVStorage(HVStorage):
"vol_size" : space * GIGABYTE_DIV,
}
try:
pool.createXML(xml_desc, 0);
self._pools[pool].createXML(xml_desc, 0);
except libvirt.libvirtError as e:
raise StorageError("Failed to create the volume (%s)" % e)
......@@ -436,7 +436,7 @@ class LibvirtHVStorage(HVStorage):
Tries to find a suitable chunk of space for volume allocation.
:param new_space: a space size in gigabytes
:type new_space: :class:`str`
:type new_space: :class:`int`
:return: a :class:`tuple` of best location or :class:`False` if no
pool is suitable
'''
......
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