From ea57f451d7dd8a6b2b3d970c5b696e5901547dd0 Mon Sep 17 00:00:00 2001 From: tbbrave Date: Wed, 21 Dec 2016 11:06:34 +0800 Subject: [PATCH] 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 --- trove/instance/service.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/trove/instance/service.py b/trove/instance/service.py index 686e3e53c2..d0db967437 100644 --- a/trove/instance/service.py +++ b/trove/instance/service.py @@ -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)