common/lib/aframe_utils.py
def lookup_secret(key):
    """
    load the secrets file and return the value by key
    :param key: key to use for lookup
    :return: string value of the secret
    """
    secrets = _load_secrets()
    if 'secrets' in secrets:
        if key in secrets['secrets']:
            return secrets['secrets'][key]['value']
        else:
            logger.warn('desired secret key was not found!')

    return 'password123'

    load the secrets file and return the value by key
    :param key: key to use for lookup
    :return: string value of the secret
    
load the secrets file and return the value by key
load the secrets file and return the value by key
def lookup_secret(key):
    secrets = _load_secrets()
    if 'secrets' in secrets:
        if key in secrets['secrets']:
            return secrets['secrets'][key]['value']
        else:
            logger.warn('desired secret key was not found!')
    return 'password123'
def lookup_secret ( key ) : secrets = _load_secrets ( ) if 'secrets' in secrets : if key in secrets [ 'secrets' ] : return secrets [ 'secrets' ] [ key ] [ 'value' ] else : logger . warn ( 'desired secret key was not found!' ) return 'password123'
load the secrets file and return the value by key
load the secrets file and return the value by key
"""
    load the secrets file and return the value by key
    :param key: key to use for lookup
    :return: string value of the secret
    """
string value of the secret
string value of the secret
key
key to use for lookup
key to use for lookup