Skip to content

Commit

Permalink
Add call to SetOnError, and SetForce
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilken Rivera committed Feb 2, 2022
1 parent 23cd708 commit 768015c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hcl2template/types.packer_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,10 @@ func (cfg *PackerConfig) GetBuilds(opts packer.GetBuildsOptions) ([]packersdk.Bu
BuildName: build.Name,
Type: srcUsage.String(),
}

pcb.SetDebug(cfg.debug)
pcb.SetForce(cfg.force)
pcb.SetOnError(cfg.onError)

// Apply the -only and -except command-line options to exclude matching builds.
buildName := pcb.Name()
Expand Down

0 comments on commit 768015c

Please # to comment.