summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/servers.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index 74b4f55b5..24fd5000c 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -66,7 +66,7 @@ def checks_instance_lock(function):
if admin or not locked:
return function(*args, **kwargs)
- return faults.Fault(exc.HTTPNotFound())
+ return faults.Fault(exc.HTTPMethodNotAllowed())
return decorated_function
@@ -138,7 +138,6 @@ class Controller(wsgi.Controller):
res = [entity_maker(inst)['server'] for inst in limited_list]
return dict(servers=res)
- @checks_instance_lock
def show(self, req, id):
""" Returns server details by server id """
try: