2 import CondCore.Utilities.credentials
as credentials
5 db_service =
'cms_omds_adg' 6 if socket.getfqdn().
strip().endswith(
'.cms'):
7 db_service =
'cms_omds_lb' 10 machine =
'%s/%s' %(db_service, db_account)
13 (username, account, pwd) = creds
14 return db_service, username, pwd
16 raise Exception(
'Entry for service %s not found in .netrc' %machine )
def get_db_credentials(db_account)
def get_credentials(machine, authPath=None)