def fetch_crl(project_id):
 if (not CONF.crypto.use_project_ca):
  project_id = None
 crl_file_path = crl_path(project_id)
 if (not os.path.exists(crl_file_path)):
  raise exception.CryptoCRLFileNotFound(project=project_id)
 with open(crl_file_path, 'r') as crlfile:
  return crlfile.read()

def fetch_crl ( project_id ) : if ( not CONF . crypto . use_project_ca ) : project_id = None crl_file_path = crl_path ( project_id ) if ( not os . path . exists ( crl_file_path ) ) : raise exception . CryptoCRLFileNotFound ( project = project_id ) with open ( crl_file_path , 'r' ) as crlfile : return crlfile . read ( )
get crl file for project .