mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-11 09:40:17 -04:00
googlecompute/builder: Always show message when checking image exists
This commit is contained in:
parent
4605f9559f
commit
ef1517064c
1 changed files with 1 additions and 4 deletions
|
|
@ -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...")
|
||||
}
|
||||
|
||||
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…
Reference in a new issue