builder/vmware: No redundant errors
This commit is contained in:
parent
00a5ca32ae
commit
be40fb7abb
|
@ -23,9 +23,7 @@ func (stepCompactDisk) Run(state map[string]interface{}) multistep.StepAction {
|
||||||
|
|
||||||
ui.Say("Compacting the disk image")
|
ui.Say("Compacting the disk image")
|
||||||
if err := driver.CompactDisk(full_disk_path); err != nil {
|
if err := driver.CompactDisk(full_disk_path); err != nil {
|
||||||
err := fmt.Errorf("Error compacting disk: %s", err)
|
state["error"] := fmt.Errorf("Error compacting disk: %s", err)
|
||||||
state["error"] = err
|
|
||||||
ui.Error(err.Error())
|
|
||||||
return multistep.ActionHalt
|
return multistep.ActionHalt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue