Skip to content

Commit

Permalink
Remove spaces in the applications string (#195)
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.
jadolg authored Jan 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent a19bdbf commit b80476b
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
@@ -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))
}

0 comments on commit b80476b

Please sign in to comment.