HCL: deshadown warnings from Parser.Parse

the func would return when `diags.HasErrors()` but this does not mean that diags is empty.
This commit is contained in:
Adrien Delorme 2020-01-06 14:31:15 +01:00
parent 5ef1893b00
commit d8c33bc59e
1 changed files with 2 additions and 1 deletions

View File

@ -103,5 +103,6 @@ func (p *Parser) Parse(path string) ([]packer.Build, hcl.Diagnostics) {
return nil, diags return nil, diags
} }
return p.getBuilds(cfg) builds, moreDiags := p.getBuilds(cfg)
return builds, append(diags, moreDiags...)
} }