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

@ -19,10 +19,9 @@ func TestAccAzureRMNetworkSecurityGroup_importBasic(t *testing.T) {
},
resource.TestStep{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"resource_group_name"},
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})

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)