From 435ef59956ce904e3ea3f60f28b7ed6af12f11be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Alberto=20D=C3=ADaz=20Orozco?= Date: Fri, 5 Jan 2024 13:41:38 +0100 Subject: [PATCH] Remove spaces in the applications string the list of applications needs to be supplied as comma separated strings. Including spaces breaks the process. This change should ensure no spaces are passed to the API. --- civo/resource_kubernetes_cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/civo/resource_kubernetes_cluster.go b/civo/resource_kubernetes_cluster.go index 255dce27..cffb0d77 100644 --- a/civo/resource_kubernetes_cluster.go +++ b/civo/resource_kubernetes_cluster.go @@ -274,7 +274,7 @@ func resourceKubernetesClusterCreate(ctx context.Context, d *schema.ResourceData if attr, ok := d.GetOk("applications"); ok { if utils.CheckAPPName(attr.(string), apiClient) { - config.Applications = attr.(string) + config.Applications = strings.ReplaceAll(attr.(string), " ", "") } else { return diag.Errorf("[ERR] the app that tries to install is not valid: %s", attr.(string)) }