https://pulumi.com logo
#golang
Title
# golang
a

adventurous-planet-77099

11/22/2023, 1:37 PM
How do i pass []internal.Output to pulumi.All() in go
cannot use nodesOutput (variable of type []"<http://github.com/pulumi/pulumi/sdk/v3/go/internal|github.com/pulumi/pulumi/sdk/v3/go/internal>".Output) as []interface{} value in argument to pulumi.AllcompilerIncompatibleAssign
var nodesOutput []internal.Output
when doing this
pulumi.All(nodesOutput...).ApplyT(func(args []interface{}) error {
for _, a := range args {
fmt.Println(a.(NodeInfo))
}
return nil
})
It works when im passing manually pulumi.All(nodesOutput[0],nodesOutput[1]) (edited)
5 Views