fixed some remnants of the error swallowing

This commit is contained in:
LizaTretyakova 2017-04-23 11:10:39 +03:00
parent 80a24446c4
commit 8b2a195efd
1 changed files with 2 additions and 2 deletions

View File

@ -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
}
}