diff --git a/stackalytics/dashboard/web.py b/stackalytics/dashboard/web.py index 8db4c7a94..01b038a87 100644 --- a/stackalytics/dashboard/web.py +++ b/stackalytics/dashboard/web.py @@ -674,7 +674,7 @@ def timeline(records, **kwargs): @app.template_test() def too_old(timestamp): - age = cfg.CONF.age_warn + age = CONF.age_warn now = time.time() return timestamp + age < now diff --git a/stackalytics/processor/utils.py b/stackalytics/processor/utils.py index d725afde5..87729a388 100644 --- a/stackalytics/processor/utils.py +++ b/stackalytics/processor/utils.py @@ -125,7 +125,7 @@ def _session_request(session, uri, method): headers = {'User-Agent': user_agent, 'Accept': 'application/json'} return session.request(method, uri, headers=headers, - timeout=cfg.CONF.read_timeout) + timeout=CONF.read_timeout) def do_request(uri, method='get', session=None):