'Read and return the value of the \'USE_JOURNAL\' environment variable on a fluentd pod.'

def check_fluentd_env_var(self):

    running_pods = self.running_fluentd_pods()
    try:
        pod_containers = running_pods[0]['spec']['containers']
    except KeyError:
        return 'Unable    to    detect    running    containers    on    selected    Fluentd    pod.'
    if (not pod_containers):
        msg = 'There    are    no    running    containers    on    selected    Fluentd    pod    "{}".\nUnable    to    calculate    expected    logging    driver.'.format(running_pods[0]['metadata'].get('name', ''))
        raise OpenShiftCheckException(msg)
    pod_env = pod_containers[0].get('env')
    if (not pod_env):
        msg = 'There    are    no    environment    variables    set    on    the    Fluentd    container    "{}".\nUnable    to    calculate    expected    logging    driver.'.format(pod_containers[0].get('name'))
        raise OpenShiftCheckException(msg)
    for env in pod_env:
        if (env['name'] == 'USE_JOURNAL'):
            return (env.get('value', 'false') != 'false')
    return False
