From 82d18a86f395657424f24e86140bb1ed15229141 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg <vrothberg@redhat.com> Date: Wed, 3 Aug 2022 14:52:38 +0200 Subject: [PATCH] pkg/autoupdate: use policy consts were possible Signed-off-by: Valentin Rothberg <vrothberg@redhat.com> --- pkg/autoupdate/autoupdate.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/autoupdate/autoupdate.go b/pkg/autoupdate/autoupdate.go index 2db85df5d3..6748ca3516 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.