fix propagation of secrets for resource inputs/outputs in go sdk (#4387)

This commit is contained in:
Evan Boyle 2020-04-13 22:48:36 -07:00 committed by GitHub
parent 51588ede49
commit 4261b27a5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,8 @@ CHANGELOG
=========
## HEAD (unreleased)
_(none)_
- Fix Go SDK secret propagation for Resource inputs/outputs.
[#4387](https://github.com/pulumi/pulumi/pull/4387)
## 1.14.1 (2020-04-13)
- Propagate `additionalSecretOutputs` opt to Read in NodeJS.

View file

@ -157,12 +157,12 @@ func marshalInput(v interface{}, destType reflect.Type, await bool) (resource.Pr
func marshalInputAndDetermineSecret(v interface{},
destType reflect.Type,
await bool) (resource.PropertyValue, []Resource, bool, error) {
secret := false
for {
valueType := reflect.TypeOf(v)
// If this is an Input, make sure it is of the proper type and await it if it is an output/
var deps []Resource
secret := false
if input, ok := v.(Input); ok {
valueType = input.ElementType()