pyca/config.py
def check():
    '''Check configuration for sanity.
    '''
    if config('server')['insecure']:
        logger.warning('HTTPS CHECKS ARE TURNED OFF. A SECURE CONNECTION IS '
                       'NOT GUARANTEED')
    if config('server')['certificate']:
        # Ensure certificate exists and is readable
        open(config('server')['certificate'], 'rb').close()
    if config('agent')['backup_mode']:
        logger.info('Agent runs in backup mode. No data will be sent to '
                    'Opencast')
def check():
    '''Check configuration for sanity.
    '''
    if config('server')['insecure']:
        logger.warning('HTTPS CHECKS ARE TURNED OFF. A SECURE CONNECTION IS '
                       'NOT GUARANTEED')
    if config('server')['certificate']:
        # Ensure certificate exists and is readable
        open(config('server')['certificate'], 'rb').close()
    if config('agent')['backup_mode']:
        logger.info('Agent runs in backup mode. No data will be sent to '
                    'Opencast')
def check ( ) : if config ( 'server' ) [ 'insecure' ] : logger . warning ( 'HTTPS CHECKS ARE TURNED OFF. A SECURE CONNECTION IS ' 'NOT GUARANTEED' ) if config ( 'server' ) [ 'certificate' ] : # Ensure certificate exists and is readable open ( config ( 'server' ) [ 'certificate' ] , 'rb' ) . close ( ) if config ( 'agent' ) [ 'backup_mode' ] : logger . info ( 'Agent runs in backup mode. No data will be sent to ' 'Opencast' )
Check configuration for sanity.
Check configuration for sanity .