Remove duplicated meter_rpc instance initialization
Trivial fix MeteringPlugin has the meter_rpc initialization, and the MeteringDbMixin never used that. Change-Id: Ieabb10b25a1c455937d61ee2426ebfdb2ce603d9
This commit is contained in:
parent
dc2c279c10
commit
49cd9d7371
@ -22,7 +22,6 @@ from oslo_db import exception as db_exc
|
||||
from oslo_log import log as logging
|
||||
from oslo_utils import uuidutils
|
||||
|
||||
from neutron.api.rpc.agentnotifiers import metering_rpc_agent_api
|
||||
from neutron.db import l3_dvr_db
|
||||
from neutron.extensions import metering
|
||||
from neutron.objects import base as base_obj
|
||||
@ -34,9 +33,6 @@ LOG = logging.getLogger(__name__)
|
||||
|
||||
class MeteringDbMixin(metering.MeteringPluginBase):
|
||||
|
||||
def __init__(self):
|
||||
self.meter_rpc = metering_rpc_agent_api.MeteringAgentNotifyAPI()
|
||||
|
||||
@staticmethod
|
||||
def _make_metering_label_dict(metering_label, fields=None):
|
||||
res = {'id': metering_label['id'],
|
||||
|
Loading…
Reference in New Issue
Block a user