Revert "Fix crash in import azurerm_local_network_gateway"
This reverts commit 630f371b0c
.
This commit is contained in:
parent
8308ed2246
commit
469b9a2d23
|
@ -101,9 +101,6 @@ func resourceArmLocalNetworkGatewayRead(d *schema.ResourceData, meta interface{}
|
|||
return err
|
||||
}
|
||||
name := id.Path["localNetworkGateways"]
|
||||
if name == "" {
|
||||
return fmt.Errorf("Cannot find parameter 'localNetworkGateways' from '%s'", id.Path)
|
||||
}
|
||||
resGroup := id.ResourceGroup
|
||||
|
||||
resp, err := lnetClient.Get(resGroup, name)
|
||||
|
|
|
@ -52,5 +52,5 @@ The following attributes are exported:
|
|||
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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue