def get_sr_path(session):
 sr_ref = safe_find_sr(session)
 sr_rec = session.call_xenapi('SR.get_record', sr_ref)
 sr_uuid = sr_rec['uuid']
 return os.path.join(CONF.xenapi_sr_base_path, sr_uuid)

def get_sr_path ( session ) : sr_ref = safe_find_sr ( session ) sr_rec = session . call_xenapi ( 'SR.get_record' , sr_ref ) sr_uuid = sr_rec [ 'uuid' ] return os . path . join ( CONF . xenapi_sr_base_path , sr_uuid )
return the path to our storage repository this is used when were dealing with vhds directly .