Incorrect validation error for container image

This commit is contained in:
Clayton Coleman 2014-08-28 00:51:14 -04:00
parent 4379fabd5e
commit cc1ab0a3db

View File

@ -195,7 +195,7 @@ func validateContainers(containers []Container, volumes util.StringSet) errs.Err
allNames.Insert(ctr.Name)
}
if len(ctr.Image) == 0 {
cErrs = append(cErrs, errs.NewInvalid("image", ctr.Name))
cErrs = append(cErrs, errs.NewRequired("image", ctr.Image))
}
cErrs = append(cErrs, validatePorts(ctr.Ports).Prefix("ports")...)
cErrs = append(cErrs, validateEnv(ctr.Env).Prefix("env")...)