Skip to content

Commit

Permalink
fix(parser): fix invalid YAML template error for custom tag marshaler (
Browse files Browse the repository at this point in the history
  • Loading branch information
stilvoid authored and PaulMaddox committed Mar 10, 2019
1 parent 8e8cc2b commit 035d438
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 035d438

Please sign in to comment.