mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-25 10:02:16 -04:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user