Skip to content

Commit

Permalink
Fix import of resource group name for azurerm_network_security_group_…
Browse files Browse the repository at this point in the history
…rule.
  • Loading branch information
Andreas Kyrris committed Sep 27, 2016
1 parent 571d875 commit 42c8822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestAccAzureRMNetworkSecurityRule_importBasic(t *testing.T) {
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"resource_group_name", "network_security_group_name"},
ImportStateVerifyIgnore: []string{"network_security_group_name"},
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func resourceArmNetworkSecurityRuleRead(d *schema.ResourceData, meta interface{}
return nil
}

d.Set("resource_group_name", resGroup)
d.Set("access", resp.Properties.Access)
d.Set("destination_address_prefix", resp.Properties.DestinationAddressPrefix)
d.Set("destination_port_range", resp.Properties.DestinationPortRange)
Expand Down

0 comments on commit 42c8822

Please sign in to comment.