File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -788,15 +788,17 @@ func contractStep(s *step.Step, res *resolution.Resolution) {
788788 if child .Output != nil {
789789 childM [values .OutputKey ] = child .Output
790790 }
791+ var childMetadata map [string ]interface {}
791792 if child .Metadata != nil {
792- childM [ values . MetadataKey ] = child .Metadata
793+ childMetadata , _ = child .Metadata .( map [ string ] interface {})
793794 }
794- childMMetadata := childM [values .MetadataKey ].(map [string ]interface {})
795- if childMMetadata == nil {
796- childMMetadata = make (map [string ]interface {})
795+ if childMetadata == nil {
796+ childMetadata = make (map [string ]interface {})
797797 }
798- childMMetadata [values .IteratorKey ] = child .Item
799- childM [values .MetadataKey ] = childMMetadata
798+
799+ childMetadata [values .IteratorKey ] = make (map [string ]interface {})
800+ childMetadata [values .IteratorKey ] = child .Item
801+ childM [values .MetadataKey ] = childMetadata
800802 childM [values .StateKey ] = child .State
801803 var i interface {} = childM
802804 collectedChildren = append (collectedChildren , i )
You can’t perform that action at this time.
0 commit comments