def find_sr_by_uuid(session, sr_uuid):
 try:
  return session.call_xenapi('SR.get_by_uuid', sr_uuid)
 except session.XenAPI.Failure as exc:
  if (exc.details[0] == 'UUID_INVALID'):
   return None
  raise

def find_sr_by_uuid ( session , sr_uuid ) : try : return session . call_xenapi ( 'SR.get_by_uuid' , sr_uuid ) except session . XenAPI . Failure as exc : if ( exc . details [ 0 ] == 'UUID_INVALID' ) : return None raise
return the storage repository given a uuid .