From 9b92edea1e2103cf64587343352627c9888e0244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Mon, 24 Sep 2018 17:45:27 +0200 Subject: [PATCH] fix #30: 3scale on-premise only supports hosted deployments --- templates/api-calls/create_service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/api-calls/create_service.j2 b/templates/api-calls/create_service.j2 index e28d770..dc0cd08 100644 --- a/templates/api-calls/create_service.j2 +++ b/templates/api-calls/create_service.j2 @@ -1,4 +1,4 @@ -{% if threescale_cicd_apicast_sandbox_endpoint|default("")|length > 0 or threescale_cicd_apicast_production_endpoint|default("")|length > 0 %} +{% if inventory_hostname is match(".*[.]3scale[.]net") and (threescale_cicd_apicast_sandbox_endpoint|default("")|length > 0 or threescale_cicd_apicast_production_endpoint|default("")|length > 0) %} {% set deployment_type = "self_managed" %} {% else %} {% set deployment_type = "hosted" %}