Fixing bug #798261
This commit is contained in:
parent
a94c424f89
commit
9c6ab1bc28
@ -52,7 +52,7 @@ class Fault(webob.exc.HTTPException):
|
|||||||
fault_name: {
|
fault_name: {
|
||||||
'code': code,
|
'code': code,
|
||||||
'message': self.wrapped_exc.explanation,
|
'message': self.wrapped_exc.explanation,
|
||||||
'detail': self.wrapped_exc.detail}}
|
'detail': str(self.wrapped_exc.detail)}}
|
||||||
# 'code' is an attribute on the fault tag itself
|
# 'code' is an attribute on the fault tag itself
|
||||||
metadata = {'application/xml': {'attributes': {fault_name: 'code'}}}
|
metadata = {'application/xml': {'attributes': {fault_name: 'code'}}}
|
||||||
default_xmlns = common.XML_NS_V10
|
default_xmlns = common.XML_NS_V10
|
||||||
|
@ -42,7 +42,6 @@ class Controller(common.QuantumController):
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"port": ["id", "state"], }, }, }
|
"port": ["id", "state"], }, }, }
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, plugin_conf_file=None):
|
def __init__(self, plugin_conf_file=None):
|
||||||
self._resource_name = 'port'
|
self._resource_name = 'port'
|
||||||
super(Controller, self).__init__()
|
super(Controller, self).__init__()
|
||||||
@ -142,7 +141,6 @@ class Controller(common.QuantumController):
|
|||||||
except exception.PortNotFound as e:
|
except exception.PortNotFound as e:
|
||||||
return faults.Fault(faults.PortNotFound(e))
|
return faults.Fault(faults.PortNotFound(e))
|
||||||
|
|
||||||
|
|
||||||
def attach_resource(self, request, tenant_id, network_id, id):
|
def attach_resource(self, request, tenant_id, network_id, id):
|
||||||
content_type = request.best_match_content_type()
|
content_type = request.best_match_content_type()
|
||||||
print "Content type:%s" % content_type
|
print "Content type:%s" % content_type
|
||||||
|
@ -226,6 +226,7 @@ class DummyDataPlugin(object):
|
|||||||
"""
|
"""
|
||||||
print("unplug_interface() called\n")
|
print("unplug_interface() called\n")
|
||||||
|
|
||||||
|
|
||||||
class FakePlugin(object):
|
class FakePlugin(object):
|
||||||
"""
|
"""
|
||||||
FakePlugin is a demo plugin that provides
|
FakePlugin is a demo plugin that provides
|
||||||
|
Loading…
Reference in New Issue
Block a user