Skip to content

Commit

Permalink
Address more PR #2045 comments
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte committed Oct 13, 2018
1 parent 61d3be3 commit 53b08d2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions azurerm/resource_arm_security_center_contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// Invalid security contact name was provided - only 'defaultX' is allowed where X is an index
// Invalid security contact name 'default0' was provided. Expected 'default1'
// Message="Invalid security contact name 'default2' was provided. Expected 'default1'"
const resourceArmSecurityCenterContactName = "default1"
const securityCenterContactName = "default1"

func resourceArmSecurityCenterContact() *schema.Resource {
return &schema.Resource{
Expand Down Expand Up @@ -56,7 +56,7 @@ func resourceArmSecurityCenterContactCreateUpdate(d *schema.ResourceData, meta i
client := meta.(*ArmClient).securityCenterContactsClient
ctx := meta.(*ArmClient).StopContext

name := resourceArmSecurityCenterContactName
name := securityCenterContactName

contact := security.Contact{
ContactProperties: &security.ContactProperties{
Expand Down Expand Up @@ -106,7 +106,7 @@ func resourceArmSecurityCenterContactRead(d *schema.ResourceData, meta interface
client := meta.(*ArmClient).securityCenterContactsClient
ctx := meta.(*ArmClient).StopContext

name := resourceArmSecurityCenterContactName
name := securityCenterContactName

resp, err := client.Get(ctx, name)
if err != nil {
Expand All @@ -133,7 +133,7 @@ func resourceArmSecurityCenterContactDelete(_ *schema.ResourceData, meta interfa
client := meta.(*ArmClient).securityCenterContactsClient
ctx := meta.(*ArmClient).StopContext

name := resourceArmSecurityCenterContactName
name := securityCenterContactName

resp, err := client.Delete(ctx, name)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_security_center_contact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func testCheckAzureRMSecurityCenterContactDestroy(s *terraform.State) error {
if res.Type != "azurerm_security_center_contact" {
continue
}
resp, err := client.Get(ctx, resourceArmSecurityCenterContactName)
resp, err := client.Get(ctx, securityCenterContactName)
if err != nil {
if utils.ResponseWasNotFound(resp.Response) {
return nil
Expand Down
8 changes: 4 additions & 4 deletions website/azurerm.erb
Original file line number Diff line number Diff line change
Expand Up @@ -976,13 +976,13 @@
<li<%= sidebar_current("docs-azurerm-resource-security-center") %>>
<a href="#">Security Center Resources</a>
<ul class="nav nav-visible">
<li<%= sidebar_current("docs-azurerm-security-center-subscription-pricing") %>>
<a href="/docs/providers/azurerm/r/security_center_subscription_pricing.html">azurerm_security_center_subscription_pricing</a>
<li<%= sidebar_current("docs-azurerm-security-center-contact") %>>
<a href="/docs/providers/azurerm/r/security_center_contact.html">azurerm_security_center_contact</a>
</li>
</ul>
<ul class="nav nav-visible">
<li<%= sidebar_current("docs-azurerm-security-center-contact") %>>
<a href="/docs/providers/azurerm/r/security_center_contact.html">azurerm_security_center_contact</a>
<li<%= sidebar_current("docs-azurerm-security-center-subscription-pricing") %>>
<a href="/docs/providers/azurerm/r/security_center_subscription_pricing.html">azurerm_security_center_subscription_pricing</a>
</li>
</ul>
</li>
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/security_center_contact.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ The following attributes are exported:
The contact can be imported using the `resource id`, e.g.

```shell
terraform import azurerm_securitycenter_contact.example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/securityContacts/default1
terraform import azurerm_security_center_contact.example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/securityContacts/default1
```

0 comments on commit 53b08d2

Please sign in to comment.