Fix bug that could cause Go SDK to drop dependencies (#5930)
* fix bug that could cause Go SDK to drop dependencies * changelog
This commit is contained in:
parent
fed47e7334
commit
069f9f28cf
|
@ -2,7 +2,9 @@ CHANGELOG
|
|||
=========
|
||||
|
||||
## HEAD (Unreleased)
|
||||
_(none)_
|
||||
|
||||
- Fix a bug in the Go SDK that could result in dropped resource dependencies.
|
||||
[#5930](https://github.com/pulumi/pulumi/pull/5930)
|
||||
|
||||
## 2.15.5 (2020-12-11)
|
||||
|
||||
|
|
|
@ -184,11 +184,11 @@ func marshalInputAndDetermineSecret(v interface{},
|
|||
destType reflect.Type,
|
||||
await bool) (resource.PropertyValue, []Resource, bool, error) {
|
||||
secret := false
|
||||
var deps []Resource
|
||||
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
|
||||
if input, ok := v.(Input); ok {
|
||||
valueType = input.ElementType()
|
||||
|
||||
|
|
Loading…
Reference in a new issue