fix propagation of secrets for resource inputs/outputs in go sdk (#4387)
This commit is contained in:
parent
51588ede49
commit
4261b27a5e
|
@ -2,7 +2,8 @@ CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
## HEAD (unreleased)
|
## 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)
|
## 1.14.1 (2020-04-13)
|
||||||
- Propagate `additionalSecretOutputs` opt to Read in NodeJS.
|
- Propagate `additionalSecretOutputs` opt to Read in NodeJS.
|
||||||
|
|
|
@ -157,12 +157,12 @@ func marshalInput(v interface{}, destType reflect.Type, await bool) (resource.Pr
|
||||||
func marshalInputAndDetermineSecret(v interface{},
|
func marshalInputAndDetermineSecret(v interface{},
|
||||||
destType reflect.Type,
|
destType reflect.Type,
|
||||||
await bool) (resource.PropertyValue, []Resource, bool, error) {
|
await bool) (resource.PropertyValue, []Resource, bool, error) {
|
||||||
|
secret := false
|
||||||
for {
|
for {
|
||||||
valueType := reflect.TypeOf(v)
|
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/
|
// If this is an Input, make sure it is of the proper type and await it if it is an output/
|
||||||
var deps []Resource
|
var deps []Resource
|
||||||
secret := false
|
|
||||||
if input, ok := v.(Input); ok {
|
if input, ok := v.(Input); ok {
|
||||||
valueType = input.ElementType()
|
valueType = input.ElementType()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue