On 02/14/2012 01:38 AM, tangchen wrote:
> This patch adds a get_uuid() function to libvirt_vm.

Applied, just fixing spacing among functions (you were leaving only 1 
line of space between functions, not recommended by the Coding Style 
document:

https://github.com/autotest/autotest/commit/92da6680b7dcb4a8f138fbdae6f764941d79ec61

Thanks!

> Signed-off-by: Tang Chen<[email protected]>
> ---
>   client/virt/libvirt_vm.py |    6 ++++++
>   1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/client/virt/libvirt_vm.py b/client/virt/libvirt_vm.py
> index 6c0e687..19130ff 100644
> --- a/client/virt/libvirt_vm.py
> +++ b/client/virt/libvirt_vm.py
> @@ -1108,6 +1108,12 @@ class VM(virt_vm.BaseVM):
>
>           logging.debug("VM '%s' is removed", self.name)
>
> +    def get_uuid(self):
> +        """
> +        Return VM's UUID.
> +        """
> +        return virsh_uuid(self.name, self.connect_uri)
> +
>       def get_address(self, index=0):
>           """
>           Return the address of a NIC of the guest, in host space.

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

Reply via email to