* capacity should be int type
  * delete unused capacity suffix convert
  * fix xml param name

Signed-off-by: Wayne Sun <g...@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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to