Adding a few lines to set the connection info

pull/1481/head
Sander van Harmelen 11 years ago
parent d90b3aa332
commit b7a6692548

@ -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…
Cancel
Save