Skip to content

Commit

Permalink
Python3 upgrade
Browse files Browse the repository at this point in the history
Verified.
  • Loading branch information
eagleEggs authored Mar 5, 2019
1 parent c141ecb commit 3dc664c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions samples/tools/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ def print_vm_info(vm, depth=1, max_depth=10):
return

summary = vm.summary
print "Name : ", summary.config.name
print "Path : ", summary.config.vmPathName
print "Guest : ", summary.config.guestFullName
print ("Name : {}".format(summary.config.name))
print ("Path : {}".format(summary.config.vmPathName))
print ("Guest : {}".format(summary.config.guestFullName))
annotation = summary.config.annotation
if annotation:
print "Annotation : ", annotation
print "State : ", summary.runtime.powerState
print ("Annotation : {}".format(annotation))
print ("State : {}".format(summary.runtime.powerState))
if summary.guest is not None:
ip = summary.guest.ipAddress
if ip:
print "IP : ", ip
print ("IP : {}".format(ip))
if summary.runtime.question is not None:
print "Question : ", summary.runtime.question.text
print ""
print ("Question : {}".format(summary.runtime.question.text))
print ("")

0 comments on commit 3dc664c

Please sign in to comment.