mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-10 17:20:26 -04:00
command/build: don't reset error code in case an error hapened
This commit is contained in:
parent
526d040534
commit
7aaee62970
1 changed files with 2 additions and 1 deletions
|
|
@ -120,6 +120,8 @@ func (c *BuildCommand) GetBuildsFromHCL(path string) ([]packer.Build, int) {
|
|||
ret := 0
|
||||
if diags.HasErrors() {
|
||||
ret = 1
|
||||
// TODO(azr): Should we stop here or partially build ? Other builds could be
|
||||
// working; should this be an option ?
|
||||
}
|
||||
|
||||
builds, diags := cfg.GetBuilds(c.CoreConfig.Only, c.CoreConfig.Except)
|
||||
|
|
@ -135,7 +137,6 @@ func (c *BuildCommand) GetBuildsFromHCL(path string) ([]packer.Build, int) {
|
|||
c.Ui.Message(b.String())
|
||||
}
|
||||
}
|
||||
ret = 0
|
||||
if diags.HasErrors() {
|
||||
ret = 1
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue