On 02/08/2012 02:35 AM, tangchen wrote:
> This patch adds a member function vm.state() to libvirt_vm.py.

Applied, thanks!

> Signed-off-by: Tang Chen<tangchen.cn.fujitsu.com>
> ---
>   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 e806cdd..6c0e687 100644
> --- a/client/virt/libvirt_vm.py
> +++ b/client/virt/libvirt_vm.py
> @@ -413,6 +413,13 @@ class VM(virt_vm.BaseVM):
>           return virsh_is_dead(self.name, self.connect_uri)
>
>
> +    def state(self):
> +        """
> +        Return domain state.
> +        """
> +        return virsh_domstate(self.name, self.connect_uri)
> +
> +
>       def clone(self, name=None, params=None, root_dir=None, 
> address_cache=None,
>                 copy_state=False):
>           """

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to