Merge pull request #1072 from ehazlett/gce-fix-instance-refresh

gce: fix for instance not being refreshed on create
This commit is contained in:
Evan Hazlett 2015-04-29 14:06:41 -04:00
commit aa5cda2e0b
1 changed files with 6 additions and 0 deletions

View File

@ -196,11 +196,17 @@ func (c *ComputeUtil) createInstance(d *Driver) error {
if err != nil {
return err
}
log.Infof("Waiting for Instance...")
if err = c.waitForRegionalOp(op.Name); err != nil {
return err
}
instance, err = c.instance()
if err != nil {
return err
}
// Update the SSH Key
sshKey, err := ioutil.ReadFile(d.GetSSHKeyPath() + ".pub")
if err != nil {