def getCredential(cred_name): """Get the username and password""" credential = cdb.get_credential_name(TENANT, cred_name) return { const.USERNAME: const.CREDENTIAL_USERNAME, const.PASSWORD: const.CREDENTIAL_PASSWORD }
def getCredential(cred_name): """Get the username and password""" credential = cdb.get_credential_name(TENANT, cred_name) return {const.USERNAME: const.CREDENTIAL_USERNAME, const.PASSWORD: const.CREDENTIAL_PASSWORD}
def getPassword(cred_name): """Get the password""" credential = cdb.get_credential_name(TENANT, cred_name) return credential[const.CREDENTIAL_PASSWORD]
def getUsername(cred_name): """Get the username""" credential = cdb.get_credential_name(TENANT, cred_name) return credential[const.CREDENTIAL_USERNAME]
def getPassword(cred_name): """Get the password""" credential = cdb.get_credential_name(TENANT, cred_name) return credential[const.CREDENTIAL_PASSWORD]
def getUsername(cred_name): """Get the username""" credential = cdb.get_credential_name(TENANT, cred_name) return credential[const.CREDENTIAL_USERNAME]