googlecompute/builder: Always show message when checking image exists
This commit is contained in:
parent
4605f9559f
commit
ef1517064c
@ -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"+
|
||||
|
Loading…
x
Reference in New Issue
Block a user