[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [test-API][PATCH] Fix logical volume create problem



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

Signed-off-by: Wayne Sun <gsun 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]