mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
fixed some remnants of the error swallowing
This commit is contained in:
parent
80a24446c4
commit
8b2a195efd
1 changed files with 2 additions and 2 deletions
|
|
@ -96,14 +96,14 @@ func (p *PostProcessor) Configure(raws ...interface{}) error {
|
|||
if p.config.Cpu_sockets != "" {
|
||||
vm_opt_params.Cpu_sockets, err = strconv.Atoi(p.config.Cpu_sockets)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return err
|
||||
}
|
||||
}
|
||||
vm_opt_params.Ram = Unspecified
|
||||
if p.config.Ram != "" {
|
||||
vm_opt_params.Ram, err = strconv.Atoi(p.config.Ram)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue