Fix import of resource group name for azurerm_network_security_group.

This commit is contained in:
Andreas Kyrris 2016-09-27 17:54:08 +01:00
parent 3a047c06ba
commit 8c678121e6
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,6 @@ func TestAccAzureRMNetworkSecurityGroup_importBasic(t *testing.T) {
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"resource_group_name"},
},
},
})

View File

@ -203,6 +203,7 @@ func resourceArmNetworkSecurityGroupRead(d *schema.ResourceData, meta interface{
d.Set("security_rule", flattenNetworkSecurityRules(resp.Properties.SecurityRules))
}
d.Set("resource_group_name", resGroup)
d.Set("name", resp.Name)
d.Set("location", resp.Location)
flattenAndSetTags(d, resp.Tags)