From b80476bef72e938aab4bb402e63859b13d90b250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Alberto=20D=C3=ADaz=20Orozco=20=28Akiel=29?= Date: Fri, 5 Jan 2024 14:30:45 +0100 Subject: [PATCH] Remove spaces in the applications string (#195) 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 255dce2..cffb0d7 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)) }