gce: fix for instance not being refreshed on create

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2015-04-29 09:40:42 -04:00
parent 56ec00b3d2
commit 31b1eb0875
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 {