Fix import of resource group name for azurerm_virtual_network.
This commit is contained in:
parent
9916e6b2f2
commit
e60d5dd260
|
@ -24,10 +24,9 @@ func TestAccAzureRMVirtualNetwork_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"},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -142,6 +142,7 @@ func resourceArmVirtualNetworkRead(d *schema.ResourceData, meta interface{}) err
|
||||||
vnet := *resp.Properties
|
vnet := *resp.Properties
|
||||||
|
|
||||||
// update appropriate values
|
// update appropriate values
|
||||||
|
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("address_space", vnet.AddressSpace.AddressPrefixes)
|
d.Set("address_space", vnet.AddressSpace.AddressPrefixes)
|
||||||
|
|
Loading…
Reference in New Issue