Revert "Fix crash in import azurerm_local_network_gateway"

This reverts commit 630f371b0c.
This commit is contained in:
Jie Wang 2017-03-31 13:56:15 -07:00
parent 8308ed2246
commit 469b9a2d23
2 changed files with 1 additions and 4 deletions

View File

@ -101,9 +101,6 @@ func resourceArmLocalNetworkGatewayRead(d *schema.ResourceData, meta interface{}
return err return err
} }
name := id.Path["localNetworkGateways"] name := id.Path["localNetworkGateways"]
if name == "" {
return fmt.Errorf("Cannot find parameter 'localNetworkGateways' from '%s'", id.Path)
}
resGroup := id.ResourceGroup resGroup := id.ResourceGroup
resp, err := lnetClient.Get(resGroup, name) resp, err := lnetClient.Get(resGroup, name)

View File

@ -52,5 +52,5 @@ The following attributes are exported:
Local Network Gateways can be imported using the `resource id`, e.g. Local Network Gateways can be imported using the `resource id`, e.g.
``` ```
terraform import azurerm_local_network_gateway.lng1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/localNetworkGateways/lng1 terraform import azurerm_local_network_gateway.lng1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/microsoft.network/localnetworkgateways/lng1
``` ```