1 import FWCore.ParameterSet.Config
as cms
2 import CondCore.Utilities.credentials
as credentials
5 authPathEnvVar =
'COND_AUTH_PATH' 6 db_service =
'cms_omds_adg' 7 if socket.getfqdn().
strip().endswith(
'.cms'):
8 db_service =
'cms_omds_lb' 9 db_machine = db_service +
'/CMS_ECAL_R' 15 (username, account, pwd) = creds
16 return db_service, username, pwd
18 raise Exception(
'Entry for service %s not found in .netrc' %db_machine )
def get_credentials(authPathEnvVar, service, authFile=None)
def get_readOnly_db_credentials()