Skip to content

Commit

Permalink
Merge pull request #3183 from Lucretius/no-empty-identityids
Browse files Browse the repository at this point in the history
validation for identity_ids
  • Loading branch information
tombuildsstuff authored Apr 5, 2019
2 parents 66a403d + a4a2ab0 commit acec38e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion azurerm/resource_arm_virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils"
"golang.org/x/net/context"
)
Expand Down Expand Up @@ -102,8 +103,10 @@ func resourceArmVirtualMachine() *schema.Resource {
"identity_ids": {
Type: schema.TypeList,
Optional: true,
MinItems: 1,
Elem: &schema.Schema{
Type: schema.TypeString,
Type: schema.TypeString,
ValidateFunc: validate.UUID,
},
},
},
Expand Down

0 comments on commit acec38e

Please sign in to comment.