1
0
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:
Valentin Rothberg
2022-08-03 14:52:38 +02:00
parent 1cc933c6bb
commit 82d18a86f3

View File

@@ -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.