Remove oslo.context dependency
There's no point in passing any fake context to the notifier. Change-Id: Ib95776ecf1e3c9041b4268332cd3fb0b720b42f2
This commit is contained in:
parent
01e0856ae1
commit
10f28d6bc8
|
@ -42,7 +42,6 @@ import functools
|
|||
import logging
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_context import context
|
||||
import oslo_messaging
|
||||
from oslo_utils import timeutils
|
||||
from pycadf import event as cadf_event
|
||||
|
@ -245,8 +244,7 @@ class Swift(object):
|
|||
metric=cadf_metric.Metric(
|
||||
name='storage.objects.outgoing.bytes', unit='B')))
|
||||
|
||||
self._notifier.info(context.get_admin_context().to_dict(),
|
||||
'objectstore.http.request', event.as_dict())
|
||||
self._notifier.info({}, 'objectstore.http.request', event.as_dict())
|
||||
|
||||
|
||||
def filter_factory(global_conf, **local_conf):
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# process, which may cause wedges in the gate later.
|
||||
|
||||
oslo.config>=3.9.0 # Apache-2.0
|
||||
oslo.context>=2.2.0 # Apache-2.0
|
||||
oslo.messaging>=4.5.0 # Apache-2.0
|
||||
oslo.utils>=3.5.0 # Apache-2.0
|
||||
pbr>=1.6 # Apache-2.0
|
||||
|
|
Loading…
Reference in New Issue