Merge pull request #1481 from svanharmelen/f-cloudstack-connection
provider/cloudstack: adding a few lines to set the connection info
This commit is contained in:
commit
56adfce61f
|
@ -156,6 +156,12 @@ func resourceCloudStackInstanceCreate(d *schema.ResourceData, meta interface{})
|
|||
|
||||
d.SetId(r.Id)
|
||||
|
||||
// Set the connection info for any configured provisioners
|
||||
d.SetConnInfo(map[string]string{
|
||||
"host": r.Nic[0].Ipaddress,
|
||||
"password": r.Password,
|
||||
})
|
||||
|
||||
return resourceCloudStackInstanceRead(d, meta)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue