Skip to content

Commit

Permalink
Fix the len of the array to fix len out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
hkantare committed Nov 8, 2022
1 parent 8c54db8 commit 31a25a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibm/flex/structures.go
Original file line number Diff line number Diff line change
Expand Up @@ -3274,7 +3274,7 @@ func FlattenSatelliteHosts(hostList []kubernetesserviceapiv1.MultishiftQueueNode
}

func FlattenWorkerPoolHostLabels(hostLabels map[string]string) *schema.Set {
mapped := make([]string, len(hostLabels)-1)
mapped := make([]string, len(hostLabels))
idx := 0
for k, v := range hostLabels {
if strings.HasPrefix(k, "os") {
Expand Down

0 comments on commit 31a25a3

Please sign in to comment.