On 07/27/2012 02:05 AM, Yu Mingfei wrote:
This patch adds domname function to libvirt_vm.py.

Signed-off-by: Yu Mingfei <[email protected]>
---
client/virt/libvirt_vm.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/client/virt/libvirt_vm.py b/client/virt/libvirt_vm.py
index 9a06f05..14a2a08 100644
--- a/client/virt/libvirt_vm.py
+++ b/client/virt/libvirt_vm.py
@@ -116,6 +116,16 @@ def virsh_cmd(cmd, uri="", ignore_status=False,
print_info=False):
return ret


+def virsh_domname(id, uri="", ignore_status=False, print_info=False):
+ """
+ Convert a domain id or UUID to domain name
+
+ @param id: a domain id or UUID.
+ """
+ return virsh_cmd("domname --domain %s" % id, 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.

This patch looks fine to me. I'm NOT putting it into next yet, just in case you want to make changes for v4 of the whole set. Though I'm happy to start committing parts of the whole set asynchronously if you prefer - just let me know. Thanks!

--
Chris Evich, RHCA, RHCE, RHCDS, RHCSS
Quality Assurance Engineer
e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to