Removed instance reset_password from trove

The reset_password operation no longer exists and needs to be removed
from trove.

Change-Id: Ie2edd43a18ec547d480940727021e6f7e83e42a4
Closes-Bug: #1645866
This commit is contained in:
tbbrave 2016-12-21 11:06:34 +08:00 committed by zhangdetong
parent 4f9c538f68
commit ea57f451d7
1 changed files with 1 additions and 6 deletions

View File

@ -15,7 +15,6 @@
from oslo_log import log as logging
from oslo_utils import strutils
import webob.exc
from trove.backup.models import Backup as backup_model
from trove.backup import views as backup_views
@ -74,7 +73,7 @@ class InstanceController(wsgi.Controller):
def action(self, req, body, tenant_id, id):
"""
Handles requests that modify existing instances in some manner. Actions
could include 'resize', 'restart', 'reset_password'
could include 'resize', 'restart'
:param req: http request object
:param body: deserialized body of the request as a dict
:param tenant_id: the tenant id for whom owns the instance
@ -87,7 +86,6 @@ class InstanceController(wsgi.Controller):
_actions = {
'restart': self._action_restart,
'resize': self._action_resize,
'reset_password': self._action_reset_password,
'promote_to_replica_source':
self._action_promote_to_replica_source,
'eject_replica_source': self._action_eject_replica_source,
@ -161,9 +159,6 @@ class InstanceController(wsgi.Controller):
instance.resize_flavor(new_flavor_id)
return wsgi.Result(None, 202)
def _action_reset_password(self, context, instance, body):
raise webob.exc.HTTPNotImplemented()
def _action_promote_to_replica_source(self, context, req, instance, body):
self.authorize_instance_action(
context, 'promote_to_replica_source', instance)