diff --git a/ccnode/libvirtwrapper.py b/ccnode/libvirtwrapper.py index 5cdaaee60596ebf74be20afbb8125fd77e4838a6..ce0e3a84a959e04c845470bc39df1aa77799d5eb 100644 --- a/ccnode/libvirtwrapper.py +++ b/ccnode/libvirtwrapper.py @@ -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 '''