From 47955b1d446e70e27b72f77f4dffe0dc15c40796 Mon Sep 17 00:00:00 2001 From: Jon Perritt Date: Wed, 7 Jan 2015 16:45:06 -0700 Subject: [PATCH] remove unneeded variables during server creation --- .../openstack/resource_openstack_compute_instance.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/builtin/providers/openstack/resource_openstack_compute_instance.go b/builtin/providers/openstack/resource_openstack_compute_instance.go index a57fda13b..7ba4199fc 100644 --- a/builtin/providers/openstack/resource_openstack_compute_instance.go +++ b/builtin/providers/openstack/resource_openstack_compute_instance.go @@ -172,15 +172,13 @@ func resourceComputeInstanceCreate(d *schema.ResourceData, meta interface{}) err MinTimeout: 3 * time.Second, } - serverRaw, err := stateConf.WaitForState() + _, err = stateConf.WaitForState() if err != nil { return fmt.Errorf( "Error waiting for instance (%s) to become ready: %s", server.ID, err) } - server = serverRaw.(*servers.Server) - return resourceComputeInstanceRead(d, meta) }