#NEWLINE# def print_vm_info( virtual_machine ) : #NEWLINE# #INDENT# '\n    Print information for a particular virtual machine or recurse into a\n    folder with depth protection\n    ' #NEWLINE# summary = virtual_machine . summary #NEWLINE# print ( 'Name       : ' , summary . config . name ) #NEWLINE# print ( 'Template   : ' , summary . config . template ) #NEWLINE# print ( 'Path       : ' , summary . config . vmPathName ) #NEWLINE# print ( 'Guest      : ' , summary . config . guestFullName ) #NEWLINE# print ( 'Instance UUID : ' , summary . config . instanceUuid ) #NEWLINE# print ( 'Bios UUID     : ' , summary . config . uuid ) #NEWLINE# annotation = summary . config . annotation #NEWLINE# if annotation : #NEWLINE# #INDENT# print ( 'Annotation : ' , annotation ) #NEWLINE# #UNINDENT# print ( 'State      : ' , summary . runtime . powerState ) #NEWLINE# if ( summary . guest is not None ) : #NEWLINE# #INDENT# ip_address = summary . guest . ipAddress #NEWLINE# tools_version = summary . guest . toolsStatus #NEWLINE# if ( tools_version is not None ) : #NEWLINE# #INDENT# print ( 'VMware-tools: ' , tools_version ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( 'Vmware-tools: None' ) #NEWLINE# #UNINDENT# if ip_address : #NEWLINE# #INDENT# print ( 'IP         : ' , ip_address ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( 'IP         : None' ) #NEWLINE# #UNINDENT# #UNINDENT# if ( summary . runtime . question is not None ) : #NEWLINE# #INDENT# print ( 'Question  : ' , virtual_machine . runtime . question . text ) #NEWLINE# #UNINDENT# print ( '' )