CMS 3D CMS Logo

Functions
db_credentials Namespace Reference

Functions

def get_db_credentials (db_account)
 

Function Documentation

◆ get_db_credentials()

def db_credentials.get_db_credentials (   db_account)

Definition at line 9 of file db_credentials.py.

9 def get_db_credentials( db_account ):
10  machine = '%s/%s' %(db_service, db_account)
11  creds = credentials.get_credentials( machine )
12  if not creds is None:
13  (username, account, pwd) = creds
14  return db_service, username, pwd
15  else:
16  raise Exception('Entry for service %s not found in .netrc' %machine )

References credentials.get_credentials().

db_credentials.get_db_credentials
def get_db_credentials(db_account)
Definition: db_credentials.py:9
credentials.get_credentials
def get_credentials(machine, authPath=None)
Definition: credentials.py:26
Exception