Skip to content

Commit

Permalink
Remove unused compute_api in extend_status
Browse files Browse the repository at this point in the history
There are unused compute_api variable in extend_status
extension, this patch remove them in both v2/v3(v2.1).

Change-Id: I901fb3c6bc1c75b66b530a023c8632fb7decede3
  • Loading branch information
jichenjc committed Oct 26, 2014
1 parent 6d7f07c commit a93610b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions nova/api/openstack/compute/contrib/extended_status.py
Expand Up @@ -17,15 +17,13 @@
from nova.api.openstack import extensions
from nova.api.openstack import wsgi
from nova.api.openstack import xmlutil
from nova import compute

authorize = extensions.soft_extension_authorizer('compute', 'extended_status')


class ExtendedStatusController(wsgi.Controller):
def __init__(self, *args, **kwargs):
super(ExtendedStatusController, self).__init__(*args, **kwargs)
self.compute_api = compute.API()

def _extend_server(self, server, instance):
for state in ['task_state', 'vm_state', 'power_state']:
Expand Down
2 changes: 0 additions & 2 deletions nova/api/openstack/compute/plugins/v3/extended_status.py
Expand Up @@ -16,7 +16,6 @@

from nova.api.openstack import extensions
from nova.api.openstack import wsgi
from nova import compute

ALIAS = "os-extended-status"
authorize = extensions.soft_extension_authorizer('compute', 'v3:' + ALIAS)
Expand All @@ -25,7 +24,6 @@
class ExtendedStatusController(wsgi.Controller):
def __init__(self, *args, **kwargs):
super(ExtendedStatusController, self).__init__(*args, **kwargs)
self.compute_api = compute.API()

def _extend_server(self, server, instance):
for state in ['task_state', 'vm_state', 'power_state', 'locked_by']:
Expand Down

0 comments on commit a93610b

Please sign in to comment.