HCL: deshadown warnings from Parser.Parse

the func would return when `diags.HasErrors()` but this does not mean that diags is empty.
pull/8569/head
Adrien Delorme 6 years ago
parent 5ef1893b00
commit d8c33bc59e

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

Loading…
Cancel
Save