From 155e7840ba3ddeef68b4eaf28488c5b479964446 Mon Sep 17 00:00:00 2001 From: James Nugent Date: Tue, 29 Mar 2016 16:17:47 -0700 Subject: [PATCH] provider/triton: Fix error for VLAN ID validation Source: https://apidocs.joyent.com/cloudapi/#CreateFabricVLAN This suggests that the check is correct and the error message and description are not, so this commit makes them match the docs. --- builtin/providers/triton/resource_vlan.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/triton/resource_vlan.go b/builtin/providers/triton/resource_vlan.go index ece7aeade6..c4c3c284ab 100644 --- a/builtin/providers/triton/resource_vlan.go +++ b/builtin/providers/triton/resource_vlan.go @@ -18,14 +18,14 @@ func resourceVLAN() *schema.Resource { Schema: map[string]*schema.Schema{ "vlan_id": { - Description: "number between 2-4095 indicating VLAN ID", + Description: "number between 0-4095 indicating VLAN ID", Required: true, ForceNew: true, Type: schema.TypeInt, ValidateFunc: func(val interface{}, field string) (warn []string, err []error) { value := val.(int) if value < 0 || value > 4095 { - err = append(err, errors.New("id must be between 2 and 4095")) + err = append(err, errors.New("vlan_id must be between 0 and 4095")) } return },