mirror of https://github.com/pulumi/pulumi.git
765a67effb
Fixes https://github.com/pulumi/pulumi/issues/16889 Currently `resource.NewPropertyMapFromMap` will drop any `resource.PropertyValue`s from the input map. This is demonstrated succinctly by Ian in the linked ticket: ```go package main import ( "fmt" "github.com/pulumi/pulumi/sdk/v3/go/common/resource" ) func main() { fmt.Println(resource.NewObjectProperty(resource.NewPropertyMapFromMap(map[string]any{ "foo": resource.NewObjectProperty(resource.NewPropertyMapFromMap(map[string]any{ "bar": resource.NewNumberProperty(0), })), }))) fmt.Println(resource.NewObjectProperty(resource.NewPropertyMapFromMap(map[string]any{ "foo": map[string]any{"bar": 0}, }))) } ``` ``` {map[foo:{map[]}]} {map[foo:{map[bar:{0}]}]} ``` This PR updates `NewPropertyMapFromMap` to instead flow these values through directly resulting in an output of: ``` {map[foo:{map[bar:{0}]}]} {map[foo:{map[bar:{0}]}]} ``` |
||
---|---|---|
.. | ||
pending | ||
config.yaml |