From 97b2be45e09011fb65ff7924700a3df259601230 Mon Sep 17 00:00:00 2001 From: Praveen Kumar <42026111+Praveen005@users.noreply.github.com> Date: Sun, 28 Jul 2024 16:04:13 +0530 Subject: [PATCH] fix: handle application plans with spaces (#286) Ensure that application plans with spaces are correctly processed --- civo/kubernetes/resource_kubernetes_cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/civo/kubernetes/resource_kubernetes_cluster.go b/civo/kubernetes/resource_kubernetes_cluster.go index b00d2b2d..2d8b5db4 100644 --- a/civo/kubernetes/resource_kubernetes_cluster.go +++ b/civo/kubernetes/resource_kubernetes_cluster.go @@ -241,7 +241,7 @@ func resourceKubernetesClusterCreate(ctx context.Context, d *schema.ResourceData if attr, ok := d.GetOk("applications"); ok { if utils.CheckAPPName(attr.(string), apiClient) { - config.Applications = strings.ReplaceAll(attr.(string), " ", "") + config.Applications = attr.(string) } else { return diag.Errorf("[ERR] the app that tries to install is not valid: %s", attr.(string)) }