From 4868a9be4c1b267a4d4145e76993111e7d9c3192 Mon Sep 17 00:00:00 2001 From: zhouhao Date: Fri, 1 Sep 2017 14:02:07 +0800 Subject: [PATCH] validate: Increase the valid value of devices.type Signed-off-by: zhouhao --- validate/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/validate.go b/validate/validate.go index 0d62a53ef..02cc8dcda 100644 --- a/validate/validate.go +++ b/validate/validate.go @@ -705,7 +705,7 @@ func (v *Validator) CheckLinuxResources() (errs error) { } for index := 0; index < len(r.Devices); index++ { switch r.Devices[index].Type { - case "a", "b", "c": + case "a", "b", "c", "": default: errs = multierror.Append(errs, fmt.Errorf("type of devices %s is invalid", r.Devices[index].Type)) }