Re: [test-API][PATCH] Fix logical volume create problem

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

 



On 2012年08月01日 17:43, Wayne Sun wrote:
   * capacity should be int type
   * delete unused capacity suffix convert
   * fix xml param name

Signed-off-by: Wayne Sun<gsun@xxxxxxxxxx>
---
  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()

ACK and pushed.

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



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]