On 07/12/2012 11:35 AM, Yu Mingfei wrote:
> This patch adds function virsh_list to libvirt_vm.py.
>
> Signed-off-by: Yu Mingfei <[email protected]>
> ---
> client/virt/libvirt_vm.py | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/client/virt/libvirt_vm.py b/client/virt/libvirt_vm.py
> index 9a06f05..f78ab2f 100644
> --- a/client/virt/libvirt_vm.py
> +++ b/client/virt/libvirt_vm.py
> @@ -116,6 +116,13 @@ def virsh_cmd(cmd, uri="", ignore_status=False,
> print_info=False):
> return ret
>
>
> +def virsh_list(parameter="", uri="", ignore_status=False,
> print_info=False):
s/parameter/options/g.
> + """
> + Return the guests according parameter.
'Return list of domains' is enough.
> + """
> + return virsh_cmd("list %s" % parameter, uri, ignore_status,
> print_info)
> +
> +
> def virsh_freecell(uri = "", ignore_status=False, extra = ""):
> """
> Prints the available amount of memory on the machine or within a
> NUMA cell.
ACK with above fixing.
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest