This commit is contained in:
Jon Perritt 2015-01-27 10:19:11 -07:00
parent a707f8414c
commit 17b137c972
6 changed files with 15 additions and 17 deletions

View File

@ -8,7 +8,6 @@ import (
"github.com/hashicorp/terraform/terraform"
)
var (
OS_REGION_NAME = ""
)

View File

@ -73,7 +73,6 @@ func testAccCheckComputeV2InstanceExists(t *testing.T, n string, instance *serve
return fmt.Errorf("(testAccCheckComputeV2InstanceExists) Error creating OpenStack compute client: %s", err)
}
found, err := servers.Get(computeClient, rs.Primary.ID).Extract()
if err != nil {
return err

View File

@ -111,7 +111,7 @@ func resourceNetworkingNetworkV2Read(d *schema.ResourceData, meta interface{}) e
d.Set("region", d.Get("region").(string))
if t, exists := d.GetOk("name"); exists && t != ""{
if t, exists := d.GetOk("name"); exists && t != "" {
d.Set("name", n.Name)
} else {
d.Set("name", "")