Merge pull request #14688 from harijayms/manageddisk4TB

[MS] Adding support for 4TB disks
This commit is contained in:
Jake Champlin 2017-05-19 17:57:54 -04:00 committed by GitHub
commit 6772360c2d
1 changed files with 6 additions and 5 deletions

View File

@ -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
}