Fix import of resource group name for azurerm_network_security_group_rule.
This commit is contained in:
parent
8c678121e6
commit
9998adb6ad
|
@ -22,7 +22,7 @@ func TestAccAzureRMNetworkSecurityRule_importBasic(t *testing.T) {
|
||||||
ResourceName: resourceName,
|
ResourceName: resourceName,
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
ImportStateVerifyIgnore: []string{"resource_group_name", "network_security_group_name"},
|
ImportStateVerifyIgnore: []string{"network_security_group_name"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -183,6 +183,7 @@ func resourceArmNetworkSecurityRuleRead(d *schema.ResourceData, meta interface{}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
d.Set("resource_group_name", resGroup)
|
||||||
d.Set("access", resp.Properties.Access)
|
d.Set("access", resp.Properties.Access)
|
||||||
d.Set("destination_address_prefix", resp.Properties.DestinationAddressPrefix)
|
d.Set("destination_address_prefix", resp.Properties.DestinationAddressPrefix)
|
||||||
d.Set("destination_port_range", resp.Properties.DestinationPortRange)
|
d.Set("destination_port_range", resp.Properties.DestinationPortRange)
|
||||||
|
|
Loading…
Reference in New Issue