From 6a650ff123362acf95fedd60fe6201b71fd4100e Mon Sep 17 00:00:00 2001 From: Michael Rice <michael.rice@rackspace.com> Date: Fri, 6 Jun 2014 20:35:11 -0500 Subject: [PATCH] added uuid to getallvms sample. --- sample/getallvms.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/sample/getallvms.py b/sample/getallvms.py index 5a15a4c..e0bf6f7 100755 --- a/sample/getallvms.py +++ b/sample/getallvms.py @@ -57,19 +57,22 @@ def PrintVmInfo(vm, depth=1): return summary = vm.summary - print "Name : ", summary.config.name - print "Path : ", summary.config.vmPathName - print "Guest : ", summary.config.guestFullName + print "Name : ", summary.config.name + print "Path : ", summary.config.vmPathName + print "Guest : ", summary.config.guestFullName + print "Instance UUID : ", vm.summary.config.instanceUuid + print "BIOS UUID : ", vm.summary.config.uuid + annotation = summary.config.annotation if annotation != None and annotation != "": - print "Annotation : ", annotation - print "State : ", summary.runtime.powerState + print "Annotation : ", annotation + print "State : ", summary.runtime.powerState if summary.guest != None: ip = summary.guest.ipAddress if ip != None and ip != "": - print "IP : ", ip + print "IP : ", ip if summary.runtime.question != None: - print "Question : ", summary.runtime.question.text + print "Question : ", summary.runtime.question.text print "" def main():