remove unneeded variables during server creation
This commit is contained in:
parent
686cd4b02b
commit
47955b1d44
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue