(self, request, tenant_id)
return response
Validates a template.
        See http://api.rackspace.com/api-ref-orchestration.html#template_validate
Validates a template.
        See http://api.rackspace.com/api-ref-orchestration.html#template_validate
Validates a template . See http : // api . rackspace . com / api - ref - orchestration . html#template_validate
def validate_template(self, request, tenant_id):
        """
        Validates a template.
        See http://api.rackspace.com/api-ref-orchestration.html#template_validate
        """
        content = json_from_request(request)

        if 'template' in content or 'template_url' in content:
            request.setResponseCode(200)
            response = json.dumps({"Parameters": "parameters would go here"})
        else:
            request.setResponseCode(400)
            response = ("Bad request! template or template_url should be in "
                        "the request.")

        return response
def validate_template ( self , request , tenant_id ) : content = json_from_request ( request ) if 'template' in content or 'template_url' in content : request . setResponseCode ( 200 ) response = json . dumps ( { "Parameters" : "parameters would go here" } ) else : request . setResponseCode ( 400 ) response = ( "Bad request! template or template_url should be in " "the request." ) return response