Remove unused compute_api in ServerUsageController

compute_api is not used in ServerUsageController, then this patch
removes it for cleanup.

Change-Id: Idce514f63bebfc2b7f0e6df957ffaa06edd8be7a
This commit is contained in:
Ken'ichi Ohmichi 2015-12-21 09:03:57 +00:00
parent 3b12c70689
commit 6bb19317bf
1 changed files with 0 additions and 4 deletions

View File

@ -14,7 +14,6 @@
from nova.api.openstack import extensions
from nova.api.openstack import wsgi
from nova import compute
ALIAS = "os-server-usage"
@ -24,9 +23,6 @@ resp_topic = "OS-SRV-USG"
class ServerUsageController(wsgi.Controller):
def __init__(self, *args, **kwargs):
super(ServerUsageController, self).__init__(*args, **kwargs)
self.compute_api = compute.API()
def _extend_server(self, server, instance):
for k in ['launched_at', 'terminated_at']: