late-chef-72896
10/11/2024, 1:02 PMappend
is not working but using the index to add items to a []pulumi.StringOutput
ex:
workerPrivateIps := make([]pulumi.StringOutput, workerCount)
privateIP := worker.Networks.ApplyT(func(networks []hcloud.ServerNetworkType) string {
return *networks[0].Ip
}).(pulumi.StringOutput)
workerPrivateIps[i] = privateIP ==> WORKS
workerPrivateIps = append(workerPrivateIps, privateIP) ==> Null Pointer error