mirror of
https://github.com/containers/podman.git
synced 2025-06-24 03:08:13 +08:00
pkg/autoupdate: use policy consts were possible
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -44,10 +44,10 @@ const (
|
||||
// Map for easy lookups of supported policies.
|
||||
var supportedPolicies = map[string]Policy{
|
||||
"": PolicyDefault,
|
||||
"disabled": PolicyDefault,
|
||||
string(PolicyDefault): PolicyDefault,
|
||||
"image": PolicyRegistryImage,
|
||||
"registry": PolicyRegistryImage,
|
||||
"local": PolicyLocalImage,
|
||||
string(PolicyRegistryImage): PolicyRegistryImage,
|
||||
string(PolicyLocalImage): PolicyLocalImage,
|
||||
}
|
||||
|
||||
// updater includes shared state for auto-updating one or more containers.
|
||||
|
Reference in New Issue
Block a user