Fix import of resource group name for azurerm_virtual_network_peering.
This commit is contained in:
parent
e60d5dd260
commit
3a047c06ba
|
@ -24,10 +24,9 @@ func TestAccAzureRMVirtualNetworkPeering_importBasic(t *testing.T) {
|
|||
},
|
||||
|
||||
resource.TestStep{
|
||||
ResourceName: resourceName,
|
||||
ImportState: true,
|
||||
ImportStateVerify: true,
|
||||
ImportStateVerifyIgnore: []string{"resource_group_name"},
|
||||
ResourceName: resourceName,
|
||||
ImportState: true,
|
||||
ImportStateVerify: true,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
@ -134,6 +134,7 @@ func resourceArmVirtualNetworkPeeringRead(d *schema.ResourceData, meta interface
|
|||
peer := *resp.Properties
|
||||
|
||||
// update appropriate values
|
||||
d.Set("resource_group_name", resGroup)
|
||||
d.Set("name", resp.Name)
|
||||
d.Set("virtual_network_name", vnetName)
|
||||
d.Set("allow_virtual_network_access", peer.AllowVirtualNetworkAccess)
|
||||
|
|
Loading…
Reference in New Issue