Skip to content

Commit

Permalink
check for UUIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucretius committed Apr 5, 2019
1 parent 2c960e7 commit a4a2ab0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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 @@ -105,7 +106,7 @@ func resourceArmVirtualMachine() *schema.Resource {
MinItems: 1,
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.NoZeroValues,
ValidateFunc: validate.UUID,
},
},
},
Expand Down

0 comments on commit a4a2ab0

Please sign in to comment.