#NEWLINE# def _get_vm_ref_from_name( session , vm_name ) : #NEWLINE# #INDENT# 'Get reference to the VM with the name specified.' #NEWLINE# vms = session . _call_method ( vim_util , 'get_objects' , 'VirtualMachine' , [ 'name' ] ) #NEWLINE# return _get_object_from_results ( session , vms , vm_name , _get_object_for_value )