fault_name: {
'code': code,
'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
metadata = {'application/xml': {'attributes': {fault_name: 'code'}}}
default_xmlns = common.XML_NS_V10
"attributes": {
"port": ["id", "state"], }, }, }
-
def __init__(self, plugin_conf_file=None):
self._resource_name = 'port'
super(Controller, self).__init__()
except exception.PortNotFound as e:
return faults.Fault(faults.PortNotFound(e))
-
def attach_resource(self, request, tenant_id, network_id, id):
content_type = request.best_match_content_type()
print "Content type:%s" % content_type