googlecompute/builder: Always show message when checking image exists

This commit is contained in:
Valentin Tjoncke 2016-09-24 21:12:25 +02:00
parent 4605f9559f
commit ef1517064c

View File

@ -17,10 +17,7 @@ func (s *StepCheckExistingImage) Run(state multistep.StateBag) multistep.StepAct
d := state.Get("driver").(Driver)
ui := state.Get("ui").(packer.Ui)
if !c.PackerForce {
ui.Say("Checking image does not exist...")
}
c.imageAlreadyExists = d.ImageExists(c.ImageName)
if !c.PackerForce && c.imageAlreadyExists {
err := fmt.Errorf("Image %s already exists.\n"+