def get_dc_info(session, ds_ref):
 dc_info = _DS_DC_MAPPING.get(ds_ref.value)
 if (not dc_info):
  dcs = session._call_method(vim_util, 'get_objects', 'Datacenter', ['name', 'datastore', 'vmFolder'])
  _update_datacenter_cache_from_objects(session, dcs)
  dc_info = _DS_DC_MAPPING.get(ds_ref.value)
 return dc_info

def get_dc_info ( session , ds_ref ) : dc_info = _DS_DC_MAPPING . get ( ds_ref . value ) if ( not dc_info ) : dcs = session . _call_method ( vim_util , 'get_objects' , 'Datacenter' , [ 'name' , 'datastore' , 'vmFolder' ] ) _update_datacenter_cache_from_objects ( session , dcs ) dc_info = _DS_DC_MAPPING . get ( ds_ref . value ) return dc_info
get the datacenter name and the reference .