From 82670a0624d30bec15dbe5c9bad3ad8c049942da Mon Sep 17 00:00:00 2001 From: Tobias Bauriedel Date: Fri, 15 Nov 2024 17:52:50 +0100 Subject: [PATCH] Fix wizard depencdency for icinga2 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 5e7cd9a..a7e2a98 100644 --- a/main.go +++ b/main.go @@ -297,7 +297,7 @@ func startConfigWizard(conf *config.Config) { // Collect Icinga 2 API endpoints if module 'icinga2' is enabled // Because we only add this when module 'icinga2' or 'all' is enabled, this needs to be after saving the enabled modules wizard.AddIcingaEndpoints(&conf.Icinga2.Endpoints, "icinga-endpoints", "\nModule 'icinga2'is enabled.\nDo you want to collect data from Icinga 2 API endpoints?", func() bool { - if ok := slices.Contains(conf.General.EnabledModules, "all") || slices.Contains(conf.General.EnabledModules, "icinga"); ok { + if ok := util.StringInSlice("all", conf.General.EnabledModules) || slices.Contains(conf.General.EnabledModules, "icinga2"); ok { return true }