diff options
author | Valentin Rothberg <vrothberg@redhat.com> | 2022-08-03 14:52:38 +0200 |
---|---|---|
committer | Valentin Rothberg <vrothberg@redhat.com> | 2022-08-04 13:07:58 +0200 |
commit | 82d18a86f395657424f24e86140bb1ed15229141 (patch) | |
tree | ec0ba00975bef61d312414e773720b860500f740 /pkg | |
parent | 1cc933c6bb1dbbab56bc1918db4ae358c56bba8b (diff) | |
download | podman-82d18a86f395657424f24e86140bb1ed15229141.tar.gz podman-82d18a86f395657424f24e86140bb1ed15229141.tar.bz2 podman-82d18a86f395657424f24e86140bb1ed15229141.zip |
pkg/autoupdate: use policy consts were possible
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/autoupdate/autoupdate.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/autoupdate/autoupdate.go b/pkg/autoupdate/autoupdate.go index 2db85df5d..6748ca351 100644 --- a/pkg/autoupdate/autoupdate.go +++ b/pkg/autoupdate/autoupdate.go @@ -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. |