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

Osier Yang jyang at redhat.com
Wed Aug 1 13:02:58 UTC 2012


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 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()

ACK and pushed.




More information about the libvir-list mailing list