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:
@ -43,11 +43,11 @@ const (
|
|||||||
|
|
||||||
// Map for easy lookups of supported policies.
|
// Map for easy lookups of supported policies.
|
||||||
var supportedPolicies = map[string]Policy{
|
var supportedPolicies = map[string]Policy{
|
||||||
"": PolicyDefault,
|
"": PolicyDefault,
|
||||||
"disabled": PolicyDefault,
|
string(PolicyDefault): PolicyDefault,
|
||||||
"image": PolicyRegistryImage,
|
"image": PolicyRegistryImage,
|
||||||
"registry": PolicyRegistryImage,
|
string(PolicyRegistryImage): PolicyRegistryImage,
|
||||||
"local": PolicyLocalImage,
|
string(PolicyLocalImage): PolicyLocalImage,
|
||||||
}
|
}
|
||||||
|
|
||||||
// updater includes shared state for auto-updating one or more containers.
|
// updater includes shared state for auto-updating one or more containers.
|
||||||
|
Reference in New Issue
Block a user