Skip to content

Commit

Permalink
fix: handle application plans with spaces (#286)
Browse files Browse the repository at this point in the history
Ensure that application plans with spaces are correctly processed
  • Loading branch information
Praveen005 authored Jul 28, 2024
1 parent e7cf5b4 commit 97b2be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion civo/kubernetes/resource_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 97b2be4

Please sign in to comment.