summaryrefslogtreecommitdiff
path: root/ceilometermiddleware/swift.py
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2016-05-09 16:12:17 +0200
committerJulien Danjou <julien@danjou.info>2016-05-10 12:10:12 +0200
commit10f28d6bc8908bf7f11849d07cbaaf272915d796 (patch)
tree0d11cd02c3dbaa92e527da52ed63867477e987ca /ceilometermiddleware/swift.py
parent01e0856ae1ab4251b1462d01b1f67c6d1418c116 (diff)
downloadceilometermiddleware-10f28d6bc8908bf7f11849d07cbaaf272915d796.tar.gz
Remove oslo.context dependency
There's no point in passing any fake context to the notifier. Change-Id: Ib95776ecf1e3c9041b4268332cd3fb0b720b42f2
Diffstat (limited to 'ceilometermiddleware/swift.py')
-rw-r--r--ceilometermiddleware/swift.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ceilometermiddleware/swift.py b/ceilometermiddleware/swift.py
index ba2db38..411351a 100644
--- a/ceilometermiddleware/swift.py
+++ b/ceilometermiddleware/swift.py
@@ -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):