Skip to content

Commit

Permalink
SCALRCORE-18527 > Fix triggerPrefixes creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Vang committed Apr 9, 2021
1 parent b9db55b commit 568690e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scalr/resource_scalr_workspace.go
Expand Up @@ -167,7 +167,7 @@ func resourceScalrWorkspaceCreate(d *schema.ResourceData, meta interface{}) erro
// Get and assert the VCS repo configuration block.
if v, ok := d.GetOk("vcs_repo"); ok {
vcsRepo := v.([]interface{})[0].(map[string]interface{})
triggerPrefixes := []string{}
triggerPrefixes := make([]string, 0)

for _, pref := range vcsRepo["trigger_prefixes"].([]interface{}) {
triggerPrefixes = append(triggerPrefixes, pref.(string))
Expand Down

0 comments on commit 568690e

Please sign in to comment.