mirror of
https://github.com/containers/podman.git
synced 2025-11-03 07:47:19 +08:00
Vendor in containers/common v0.22.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
4
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
4
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user