[libvirt] [test-API][PATCH] Fix logical volume create problem
Wayne Sun
gsun at redhat.com
Wed Aug 1 09:43:24 UTC 2012
* capacity should be int type
* delete unused capacity suffix convert
* fix xml param name
Signed-off-by: Wayne Sun <gsun at redhat.com>
---
repos/storage/create_logical_volume.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/repos/storage/create_logical_volume.py b/repos/storage/create_logical_volume.py
index 170bbf5..098c148 100644
--- a/repos/storage/create_logical_volume.py
+++ b/repos/storage/create_logical_volume.py
@@ -73,10 +73,8 @@ def create_logical_volume(params):
logger = params['logger']
poolname = params['poolname']
volname = params['volname']
- capacity = params['capacity']
- xmlstr = params['xmlstr']
-
- dicts = utils.get_capacity_suffix_size(capacity)
+ capacity = int(params['capacity'])
+ xmlstr = params['xml']
conn = sharedmod.libvirtobj['conn']
pool_names = conn.listDefinedStoragePools()
--
1.7.1
More information about the libvir-list
mailing list