Vendor in containers/common v0.22.0

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2020-09-11 09:51:49 -04:00
parent 397de44d48
commit cd2b2d9fae
7 changed files with 20 additions and 8 deletions

View File

@ -658,10 +658,10 @@ func (c *NetworkConfig) Validate() error {
// ValidatePullPolicy check if the pullPolicy from CLI is valid and returns the valid enum type
// if the value from CLI or containers.conf is invalid returns the error
func ValidatePullPolicy(pullPolicy string) (PullPolicy, error) {
switch pullPolicy {
switch strings.ToLower(pullPolicy) {
case "always":
return PullImageAlways, nil
case "missing":
case "missing", "ifnotpresent":
return PullImageMissing, nil
case "never":
return PullImageNever, nil