gofmt -w -s .
Signed-off-by: Robert Breker <robert.breker@citrix.com>
This commit is contained in:
parent
db43b42ef7
commit
52fa3fe1b5
@ -35,7 +35,7 @@ func (self *StepWaitForIP) Run(state multistep.StateBag) multistep.StepAction {
|
|||||||
PredicateInterval: 5 * time.Second,
|
PredicateInterval: 5 * time.Second,
|
||||||
Predicate: func() (result bool, err error) {
|
Predicate: func() (result bool, err error) {
|
||||||
|
|
||||||
if (config.IPGetter == "auto" || config.IPGetter == "http") {
|
if config.IPGetter == "auto" || config.IPGetter == "http" {
|
||||||
|
|
||||||
// Snoop IP from HTTP fetch
|
// Snoop IP from HTTP fetch
|
||||||
select {
|
select {
|
||||||
@ -47,7 +47,7 @@ func (self *StepWaitForIP) Run(state multistep.StateBag) multistep.StepAction {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.IPGetter == "auto" || config.IPGetter == "tools") {
|
if config.IPGetter == "auto" || config.IPGetter == "tools" {
|
||||||
|
|
||||||
// Look for PV IP
|
// Look for PV IP
|
||||||
metrics, err := instance.GetGuestMetrics()
|
metrics, err := instance.GetGuestMetrics()
|
||||||
|
@ -329,7 +329,6 @@ func (self *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (pa
|
|||||||
steps = append(download_steps, steps...)
|
steps = append(download_steps, steps...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
self.runner = &multistep.BasicRunner{Steps: steps}
|
self.runner = &multistep.BasicRunner{Steps: steps}
|
||||||
self.runner.Run(state)
|
self.runner.Run(state)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user