CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
db_credentials Namespace Reference

Functions

def get_db_credentials
 

Variables

string db_service = 'cms_omds_adg'
 

Function Documentation

def db_credentials.get_db_credentials (   db_account)

Definition at line 9 of file db_credentials.py.

References credentials.get_credentials().

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

Variable Documentation

string db_credentials.db_service = 'cms_omds_adg'

Definition at line 5 of file db_credentials.py.