From 9dff0adfb16459842d6fe2dd30198465be2981f8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 8 Jun 2015 21:13:25 -0700 Subject: [PATCH] builder/google: don't hardcode SSH timeout [GH-1781] --- builder/googlecompute/builder.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/googlecompute/builder.go b/builder/googlecompute/builder.go index cfb9c6e56..8e35598d2 100644 --- a/builder/googlecompute/builder.go +++ b/builder/googlecompute/builder.go @@ -4,11 +4,11 @@ package googlecompute import ( "fmt" + "log" + "github.com/mitchellh/multistep" "github.com/mitchellh/packer/common" "github.com/mitchellh/packer/packer" - "log" - "time" ) // The unique ID for this builder. @@ -63,7 +63,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe &common.StepConnectSSH{ SSHAddress: sshAddress, SSHConfig: sshConfig, - SSHWaitTimeout: 5 * time.Minute, + SSHWaitTimeout: b.config.sshTimeout, }, new(common.StepProvision), new(StepTeardownInstance),