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