Fix import of resource group name for azurerm_local_network_gateway.
This commit is contained in:
parent
d7c0050e18
commit
48055158b6
|
@ -19,11 +19,9 @@ func TestAccAzureRMLocalNetworkGateway_importBasic(t *testing.T) {
|
||||||
},
|
},
|
||||||
|
|
||||||
resource.TestStep{
|
resource.TestStep{
|
||||||
ResourceName: resourceName,
|
ResourceName: resourceName,
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
ImportStateVerifyIgnore: []string{"resource_group_name"},
|
|
||||||
//this isn't returned from the API!
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -117,6 +117,7 @@ func resourceArmLocalNetworkGatewayRead(d *schema.ResourceData, meta interface{}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
d.Set("resource_group_name", resGroup)
|
||||||
d.Set("name", resp.Name)
|
d.Set("name", resp.Name)
|
||||||
d.Set("location", resp.Location)
|
d.Set("location", resp.Location)
|
||||||
d.Set("gateway_address", resp.Properties.GatewayIPAddress)
|
d.Set("gateway_address", resp.Properties.GatewayIPAddress)
|
||||||
|
|
Loading…
Reference in New Issue