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:
Sander van Harmelen 2015-04-10 21:36:39 +02:00
commit 56adfce61f
1 changed files with 6 additions and 0 deletions

View File

@ -156,6 +156,12 @@ func resourceCloudStackInstanceCreate(d *schema.ResourceData, meta interface{})
d.SetId(r.Id) 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) return resourceCloudStackInstanceRead(d, meta)
} }