common/lib/aframe_utils.py
def _load_secrets():
    """
    find the secrets.yml file in the 'conf' directory and return the yaml parsed value
    :return: secrets object in the form {'secrets': {'key': {'label': 'some label', 'value': 'some_password' } } }
    """
    common_lib_dir = os.path.dirname(os.path.abspath(__file__))
    conf_dir = os.path.abspath(os.path.join(common_lib_dir, '../../conf'))
    secrets_file_path = os.path.join(conf_dir, 'secrets.yml')
    with open(secrets_file_path, 'r') as secrets_file:
        try:
            secrets = yaml.load(secrets_file)
        except yaml.scanner.ScannerError as se:
            logger.error('Could not parse secrets file!')
            logger.error(se)
            secrets = {'secrets': {'default': {'label': 'default', 'value': 'password123'}}}

    return secrets

    find the secrets.yml file in the 'conf' directory and return the yaml parsed value
    :return: secrets object in the form {'secrets': {'key': {'label': 'some label', 'value': 'some_password' } } }
    
find the secrets.yml file in the 'conf' directory and return the yaml parsed value
find the secrets . yml file in the ' conf ' directory and return the yaml parsed value
def _load_secrets():
    common_lib_dir = os.path.dirname(os.path.abspath(__file__))
    conf_dir = os.path.abspath(os.path.join(common_lib_dir, '../../conf'))
    secrets_file_path = os.path.join(conf_dir, 'secrets.yml')
    with open(secrets_file_path, 'r') as secrets_file:
        try:
            secrets = yaml.load(secrets_file)
        except yaml.scanner.ScannerError as se:
            logger.error('Could not parse secrets file!')
            logger.error(se)
            secrets = {'secrets': {'default': {'label': 'default', 'value': 'password123'}}}
    return secrets
def _load_secrets ( ) : common_lib_dir = os . path . dirname ( os . path . abspath ( __file__ ) ) conf_dir = os . path . abspath ( os . path . join ( common_lib_dir , '../../conf' ) ) secrets_file_path = os . path . join ( conf_dir , 'secrets.yml' ) with open ( secrets_file_path , 'r' ) as secrets_file : try : secrets = yaml . load ( secrets_file ) except yaml . scanner . ScannerError as se : logger . error ( 'Could not parse secrets file!' ) logger . error ( se ) secrets = { 'secrets' : { 'default' : { 'label' : 'default' , 'value' : 'password123' } } } return secrets
find the secrets.yml file in the 'conf' directory and return the yaml parsed value
find the secrets . yml file in the ' conf ' directory and return the yaml parsed value
"""
    find the secrets.yml file in the 'conf' directory and return the yaml parsed value
    :return: secrets object in the form {'secrets': {'key': {'label': 'some label', 'value': 'some_password' } } }
    """
secrets object in the form {'secrets': {'key': {'label': 'some label', 'value': 'some_password' } } }
secrets object in the form { ' secrets ' : { ' key ' : { ' label ' : ' some label ' ' value ' : ' some_password ' } } }