def _get_vm_ref_from_extraconfig(session, instance_uuid):
 vms = session._call_method(vim_util, 'get_objects', 'VirtualMachine', ['config.extraConfig["nvp.vm-uuid"]'])
 return _get_object_from_results(session, vms, instance_uuid, _get_object_for_optionvalue)

def _get_vm_ref_from_extraconfig ( session , instance_uuid ) : vms = session . _call_method ( vim_util , 'get_objects' , 'VirtualMachine' , [ 'config.extraConfig["nvp.vm-uuid"]' ] ) return _get_object_from_results ( session , vms , instance_uuid , _get_object_for_optionvalue )
get reference to the vm with the uuid specified .