mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-06 22:50:24 -04:00
Formatted googlecompute builder as per make format
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
// StepCreateInstance represents a Packer build step that creates GCE instances.
|
||||
type StepCreateInstance struct {
|
||||
instanceName string
|
||||
Debug bool
|
||||
Debug bool
|
||||
}
|
||||
|
||||
// Run executes the Packer build step that creates a GCE instance.
|
||||
@@ -57,11 +57,11 @@ func (s *StepCreateInstance) Run(state multistep.StateBag) multistep.StepAction
|
||||
|
||||
ui.Message("Instance has been created!")
|
||||
|
||||
if s.Debug {
|
||||
if name != "" {
|
||||
ui.Message(fmt.Sprintf("Instance: %s started in %s", name, config.Zone))
|
||||
}
|
||||
}
|
||||
if s.Debug {
|
||||
if name != "" {
|
||||
ui.Message(fmt.Sprintf("Instance: %s started in %s", name, config.Zone))
|
||||
}
|
||||
}
|
||||
|
||||
// Things succeeded, store the name so we can remove it later
|
||||
state.Put("instance_name", name)
|
||||
|
||||
Reference in New Issue
Block a user