Also move the URL to be local to a tenant. This is because keystone will
automatically fill in the tenant id in the endpoint, so all requests will
use this as a base URL.
Change-Id: I3fbd5a7d256426079824f8a26fdcd41eac083146
Signed-off-by: Zane Bitter <zbitter@redhat.com>
conditions={'method': 'DELETE'})
# Template handling
- mapper.connect("stack", "/validate",
- controller=stacks_resource, action="validate",
+ mapper.connect("stack", "/{tenant_id}/validate",
+ controller=stacks_resource, action="validate_template",
conditions={'method': 'POST'})
super(API, self).__init__(mapper)
raise exc.HTTPNoContent()
+ @tenant_local
def validate_template(self, req):
"""
Implements the ValidateTemplate API action
try:
return self.engine_rpcapi.validate_template(req.context,
- template, params)
+ template, stack_params)
except rpc_common.RemoteError as ex:
return self._remote_error(ex)