Skip to content

Commit

Permalink
fix: json suffix for json template from CLI (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesam authored Mar 14, 2022
1 parent 37ec38a commit c8c7c1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/template/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (s Source) Read(ctx context.Context) (api.TemplateApplyTemplate, error) {
}

return api.TemplateApplyTemplate{
Sources: []string{s.Name},
Sources: []string{s.Name + ".generated.json"},
Contents: entries,
}, nil
}
2 changes: 1 addition & 1 deletion pkg/template/source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ spec:
tmpl, err := source.Read(context.Background())
require.NoError(t, err)
expected := api.TemplateApplyTemplate{
Sources: []string{source.Name},
Sources: []string{source.Name + ".generated.json"},
Contents: parsed,
}
require.Equal(t, expected, tmpl)
Expand Down

0 comments on commit c8c7c1c

Please sign in to comment.