From 662373e12ed4f78f53e37caa3300b08474e850bd Mon Sep 17 00:00:00 2001 From: Eugene Chuvyrov Date: Fri, 19 May 2017 14:10:19 -0700 Subject: [PATCH] Adding support for 4TB disks --- .../providers/azurerm/resource_arm_managed_disk.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/builtin/providers/azurerm/resource_arm_managed_disk.go b/builtin/providers/azurerm/resource_arm_managed_disk.go index 9f3fdc4c5..a167a826a 100644 --- a/builtin/providers/azurerm/resource_arm_managed_disk.go +++ b/builtin/providers/azurerm/resource_arm_managed_disk.go @@ -2,12 +2,13 @@ package azurerm import ( "fmt" - "github.com/Azure/azure-sdk-for-go/arm/disk" - "github.com/hashicorp/terraform/helper/schema" - "github.com/hashicorp/terraform/helper/validation" "log" "net/http" "strings" + + "github.com/Azure/azure-sdk-for-go/arm/disk" + "github.com/hashicorp/terraform/helper/schema" + "github.com/hashicorp/terraform/helper/validation" ) func resourceArmManagedDisk() *schema.Resource { @@ -90,9 +91,9 @@ func resourceArmManagedDisk() *schema.Resource { func validateDiskSizeGB(v interface{}, k string) (ws []string, errors []error) { value := v.(int) - if value < 1 || value > 1023 { + if value < 1 || value > 4095 { errors = append(errors, fmt.Errorf( - "The `disk_size_gb` can only be between 1 and 1023")) + "The `disk_size_gb` can only be between 1 and 4095")) } return }