pulumi/changelog
Fraser Waters 765a67effb
Flow PropertyValues through NewPropertyMapFromMap (#16894)
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}]}]}
```
2024-08-07 06:50:58 +00:00
..
pending Flow PropertyValues through NewPropertyMapFromMap (#16894) 2024-08-07 06:50:58 +00:00
config.yaml Make pulumi install work for policy packs (#16438) 2024-06-21 19:19:21 +00:00