Skip to content

Commit

Permalink
base/validate.go: Fix merge report logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien committed Aug 10, 2023
1 parent cc1fd07 commit ec4e35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/v0_6_exp/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (rs Resource) Validate(c path.ContextPath) (r report.Report) {
} else {
if field == "local" || field == "inline" {
_, report, err := exp.Parse([]byte(config))
if err != nil {
if len(report.Entries) > 0 {
r.Merge(report)
} else {
r.AddOnWarn(c.Append("ignition", "config", "merge", field), err)
Expand Down

0 comments on commit ec4e35c

Please sign in to comment.