fix(secscan): fix mitm cert path calculation

This commit is contained in:
Evan Cordell 2017-07-11 13:19:50 -04:00
parent d5b32dd6fa
commit b9581e0baf

View file

@ -1,4 +1,3 @@
import os
import logging
from abc import ABCMeta, abstractmethod
@ -12,7 +11,7 @@ from flask import url_for
from data.database import CloseForLongOperation
from data import model
from data.model.storage import get_storage_locations
from util import get_app_url
from util import get_app_url, slash_join
from util.abchelpers import nooper
from util.failover import failover, FailoverException
from util.secscan.validator import SecurityConfigValidator
@ -24,7 +23,7 @@ TOKEN_VALIDITY_LIFETIME_S = 60 # Amount of time the security scanner has to cal
UNKNOWN_PARENT_LAYER_ERROR_MSG = 'worker: parent layer is unknown, it must be processed first'
MITM_CERT_PATH = os.path.join(CONF_DIR, '/mitm.cert')
MITM_CERT_PATH = slash_join(CONF_DIR, 'mitm.cert')
DEFAULT_HTTP_HEADERS = {'Connection': 'close'}