Formatted googlecompute builder as per make format

This commit is contained in:
Prasanna Santhanam
2014-01-31 22:26:09 +05:30
parent c3eceb1af5
commit 410c0f37e1
4 changed files with 56 additions and 56 deletions
+7 -7
View File
@@ -11,8 +11,8 @@ import (
// stepInstanceInfo represents a Packer build step that gathers GCE instance info.
type StepInstanceInfo struct {
info int
Debug bool
info int
Debug bool
}
// Run executes the Packer build step that gathers GCE instance info.
@@ -47,11 +47,11 @@ func (s *StepInstanceInfo) Run(state multistep.StateBag) multistep.StepAction {
return multistep.ActionHalt
}
if s.Debug {
if ip != "" {
ui.Message(fmt.Sprintf("Public IP: %s", ip))
}
}
if s.Debug {
if ip != "" {
ui.Message(fmt.Sprintf("Public IP: %s", ip))
}
}
ui.Message(fmt.Sprintf("IP: %s", ip))
state.Put("instance_ip", ip)