(self, request, tenant_id)
return creation
Returns a generic create server response, with status 'ACTIVE'.
Returns a generic create server response, with status 'ACTIVE'.
Returns a generic create server response with status ACTIVE .
def create_server(self, request, tenant_id):
        """
        Returns a generic create server response, with status 'ACTIVE'.
        """
        try:
            content = json_from_request(request)
        except ValueError:
            return json.dumps(
                bad_request("Invalid JSON request body", request))

        try:
            creation = (self._region_collection_for_tenant(tenant_id)
                        .request_creation(request, content, self.url))
        except BadRequestError as e:
            return json.dumps(bad_request(e.nova_message, request))
        except LimitError as e:
            return json.dumps(forbidden(e.nova_message, request))

        return creation
def create_server ( self , request , tenant_id ) : try : content = json_from_request ( request ) except ValueError : return json . dumps ( bad_request ( "Invalid JSON request body" , request ) ) try : creation = ( self . _region_collection_for_tenant ( tenant_id ) . request_creation ( request , content , self . url ) ) except BadRequestError as e : return json . dumps ( bad_request ( e . nova_message , request ) ) except LimitError as e : return json . dumps ( forbidden ( e . nova_message , request ) ) return creation