Skip to content

Commit

Permalink
Pass by reference in yaml marshall
Browse files Browse the repository at this point in the history
Signed-off-by: Hasan Turken <[email protected]>
(cherry picked from commit aa9305a)
  • Loading branch information
turkenh committed Oct 23, 2022
1 parent 340331a commit 590de53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (p *Preparer) injectVariables() (map[string]string, error) {
if err != nil {
return nil, errors.Wrap(err, "cannot read data source file")
}
if err := yaml.Unmarshal(dataSource, dataSourceMap); err != nil {
if err := yaml.Unmarshal(dataSource, &dataSourceMap); err != nil {
return nil, errors.Wrap(err, "cannot prepare data source map")
}
}
Expand Down

0 comments on commit 590de53

Please sign in to comment.