From d312c30847c4755ad673939ee2801c372644fea6 Mon Sep 17 00:00:00 2001 From: eulerzgy Date: Wed, 16 Sep 2015 22:31:17 +0800 Subject: [PATCH] fix the change of hostDir to hostPath --- pkg/api/validation/validation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/validation/validation.go b/pkg/api/validation/validation.go index f22af3c6a04..df0dbb26150 100644 --- a/pkg/api/validation/validation.go +++ b/pkg/api/validation/validation.go @@ -397,9 +397,9 @@ func validateSource(source *api.VolumeSource) errs.ValidationErrorList { return allErrs } -func validateHostPathVolumeSource(hostDir *api.HostPathVolumeSource) errs.ValidationErrorList { +func validateHostPathVolumeSource(hostPath *api.HostPathVolumeSource) errs.ValidationErrorList { allErrs := errs.ValidationErrorList{} - if hostDir.Path == "" { + if hostPath.Path == "" { allErrs = append(allErrs, errs.NewFieldRequired("path")) } return allErrs