Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Output a map[interface{}] from the tag unmarshaler as that's what the…
Browse files Browse the repository at this point in the history
… yamlwrapper expects
  • Loading branch information
stilvoid committed Mar 8, 2019
1 parent 638b5bd commit cfb95ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion intrinsics/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (t *tagUnmarshalerType) UnmarshalYAMLTag(tag string, fieldValue reflect.Val

tag = prefix + tag

output := reflect.ValueOf(make(map[string]interface{}))
output := reflect.ValueOf(make(map[interface{}]interface{}))
key := reflect.ValueOf(tag)

output.SetMapIndex(key, fieldValue)
Expand Down
2 changes: 2 additions & 0 deletions test/yaml/yaml-intrinsic-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ Resources:
Properties:
Runtime: !Sub "${ParamNotExists}4.3"
Timeout: !Ref TimeoutParam
FunctionName: !Base64
Ref: AWS::Region

0 comments on commit cfb95ee

Please sign in to comment.