From 22334ebe14deec406951848615dcb76588377f2f Mon Sep 17 00:00:00 2001 From: Benziane Chakib Date: Thu, 23 Dec 2010 13:11:43 +0000 Subject: [PATCH] Bug fix with add_volume which takes now an int as space size --- ccnode/libvirtwrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccnode/libvirtwrapper.py b/ccnode/libvirtwrapper.py index 5cdaaee..ce0e3a8 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 ''' -- GitLab