]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
hyperv: drop useless messaging.Target on HyperVSecurityAgent
authorRussell Bryant <rbryant@redhat.com>
Thu, 22 Jan 2015 18:47:22 +0000 (13:47 -0500)
committerRussell Bryant <rbryant@redhat.com>
Mon, 26 Jan 2015 13:06:01 +0000 (08:06 -0500)
HyperVSecurityAgent includes a messaging.Target() definition.
However, this is unnecessary as this class is not an rpc API endpoint.
Just remove it.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: I8402079c1992453aaab1f989d70f2c5c37ebc2bd

neutron/plugins/hyperv/agent/hyperv_neutron_agent.py

index 21517c61e5a61613e30ee58fc376fe68fa2bded8..79c9f93680a19d1eb4d73d4f66948c506e7ad193 100644 (file)
@@ -80,8 +80,6 @@ config.register_agent_state_opts_helper(cfg.CONF)
 
 class HyperVSecurityAgent(sg_rpc.SecurityGroupAgentRpcMixin):
 
-    target = messaging.Target(version='1.1')
-
     def __init__(self, context, plugin_rpc):
         super(HyperVSecurityAgent, self).__init__()
         self.context = context