Skip to content

Commit

Permalink
Updating to match the changes in master / adding description to the…
Browse files Browse the repository at this point in the history
… test
  • Loading branch information
tombuildsstuff committed Oct 12, 2018
1 parent b8545cf commit a7200d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions azurerm/resource_arm_dev_test_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/Azure/azure-sdk-for-go/services/devtestlabs/mgmt/2016-05-15/dtl"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils"
)

Expand Down Expand Up @@ -48,7 +48,7 @@ func resourceArmDevTestPolicy() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: azure.ValidateDevTestLabName(),
ValidateFunc: validate.DevTestLabName(),
},

// There's a bug in the Azure API where this is returned in lower-case
Expand Down
1 change: 1 addition & 0 deletions azurerm/resource_arm_dev_test_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ resource "azurerm_dev_test_policy" "test" {
resource_group_name = "${azurerm_resource_group.test.name}"
threshold = "999"
evaluator_type = "MaxValuePolicy"
description = "Aloha this is the max number of VM's'"
tags {
"Acceptance" = "Test"
Expand Down
2 changes: 1 addition & 1 deletion website/azurerm.erb
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@
<li<%= sidebar_current("docs-azurerm-resource-dev-test-linux-virtual-machine") %>>
<a href="/docs/providers/azurerm/r/dev_test_linux_virtual_machine.html">azurerm_dev_test_linux_virtual_machine</a>
</li>

<li<%= sidebar_current("docs-azurerm-resource-dev-test-policy") %>>
<a href="/docs/providers/azurerm/r/dev_test_policy.html">azurerm_dev_test_policy</a>
</li>
Expand Down

0 comments on commit a7200d9

Please sign in to comment.