CMS 3D CMS Logo

Functions
db_credentials Namespace Reference

Functions

def get_readOnly_db_credentials ()
 

Function Documentation

def db_credentials.get_readOnly_db_credentials ( )

Definition at line 11 of file db_credentials.py.

References credentials.get_credentials().

12  creds = credentials.get_credentials( authPathEnvVar, db_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' %db_machine )
18 
def get_credentials(authPathEnvVar, service, authFile=None)
Definition: credentials.py:13
def get_readOnly_db_credentials()