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 12 of file db_credentials.py.

References credentials.get_credentials().

13  creds = credentials.get_credentials( authPathEnvVar, db_machine )
14  if not creds is None:
15  (username, account, pwd) = creds
16  return db_service, username, pwd
17  else:
18  raise Exception('Entry for service %s not found in .netrc' %db_machine )
19 
def get_credentials(authPathEnvVar, service, authFile=None)
Definition: credentials.py:13
def get_readOnly_db_credentials()