Fix xml response for create/update security service

Changed xml template for create/update security service
from SecurityServiceTemplates to SecurityServiceTemplate

Closes bug 1269829

Change-Id: I07f2847b8897cfbc2ee3e1952709925c3c056774
This commit is contained in:
Yulia Portnova 2014-01-23 14:42:21 +02:00
parent c450c15f1c
commit b6c3281880
1 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ class SecurityServiceController(wsgi.Controller):
def _get_security_services_search_options(self):
return ('status', 'name', 'id')
@wsgi.serializers(xml=SecurityServicesTemplate)
@wsgi.serializers(xml=SecurityServiceTemplate)
def update(self, req, id, body):
"""Update a security service."""
context = req.environ['manila.context']
@ -176,7 +176,7 @@ class SecurityServiceController(wsgi.Controller):
security_service = db.security_service_update(context, id, update_dict)
return self._view_builder.detail(req, security_service)
@wsgi.serializers(xml=SecurityServicesTemplate)
@wsgi.serializers(xml=SecurityServiceTemplate)
def create(self, req, body):
"""Creates a new security service."""
context = req.environ['manila.context']