Merge pull request #2191 from mitchellh/b-google-ssh-timeout

builder/google: don't hardcode SSH timeout [GH-1781]
This commit is contained in:
Mitchell Hashimoto 2015-06-08 21:15:23 -07:00
commit 7ee09cc1f3
1 changed files with 3 additions and 3 deletions

View File

@ -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),