Skip to content

Commit

Permalink
Remove spaces in the applications string
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jadolg committed Jan 5, 2024
1 parent a19bdbf commit 435ef59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion civo/resource_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 435ef59

Please sign in to comment.