From b7a669254817b482051ff38ae93f945d0c1985c9 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Fri, 10 Apr 2015 20:39:52 +0200 Subject: [PATCH] Adding a few lines to set the connection info --- .../providers/cloudstack/resource_cloudstack_instance.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builtin/providers/cloudstack/resource_cloudstack_instance.go b/builtin/providers/cloudstack/resource_cloudstack_instance.go index f0e52b5887..b88e4a255c 100644 --- a/builtin/providers/cloudstack/resource_cloudstack_instance.go +++ b/builtin/providers/cloudstack/resource_cloudstack_instance.go @@ -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) }