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

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

parent 661bad54
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
        '''