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