fix: fix slice init length

Signed-off-by: bytetigers <bytetiger@icloud.com>
pull/21636/head
bytetigers 3 months ago
parent 0e47b380b2
commit 4a77e784f0

@ -176,7 +176,7 @@ func generateClusterData(cluster resource.Resource) (gnmmod.HashicorpCloudGlobal
}
func mapArgsString(m map[string]string) string {
args := make([]string, len(m))
args := make([]string, 0, len(m))
for k, v := range m {
args = append(args, fmt.Sprintf("%s=%s", k, v))
}

Loading…
Cancel
Save