Fix import of resource group name for azurerm_local_network_gateway.

This commit is contained in:
Andreas Kyrris 2016-09-28 10:58:27 +01:00
parent d7c0050e18
commit 48055158b6
2 changed files with 4 additions and 5 deletions

View File

@ -19,11 +19,9 @@ func TestAccAzureRMLocalNetworkGateway_importBasic(t *testing.T) {
},
resource.TestStep{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"resource_group_name"},
//this isn't returned from the API!
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})

View File

@ -117,6 +117,7 @@ func resourceArmLocalNetworkGatewayRead(d *schema.ResourceData, meta interface{}
return nil
}
d.Set("resource_group_name", resGroup)
d.Set("name", resp.Name)
d.Set("location", resp.Location)
d.Set("gateway_address", resp.Properties.GatewayIPAddress)