remove unneeded variables during server creation

This commit is contained in:
Jon Perritt 2015-01-07 16:45:06 -07:00
parent 686cd4b02b
commit 47955b1d44
1 changed files with 1 additions and 3 deletions

View File

@ -172,15 +172,13 @@ func resourceComputeInstanceCreate(d *schema.ResourceData, meta interface{}) err
MinTimeout: 3 * time.Second,
}
serverRaw, err := stateConf.WaitForState()
_, err = stateConf.WaitForState()
if err != nil {
return fmt.Errorf(
"Error waiting for instance (%s) to become ready: %s",
server.ID, err)
}
server = serverRaw.(*servers.Server)
return resourceComputeInstanceRead(d, meta)
}