From 746a1f035cf0ff6e73b381bc6bbaeccd7bf12e51 Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Mon, 4 Nov 2019 17:03:30 +0100 Subject: [PATCH] Fix wrong state type convertion --- utils/convert.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/convert.go b/utils/convert.go index d9ac127b..014924fb 100644 --- a/utils/convert.go +++ b/utils/convert.go @@ -102,9 +102,9 @@ func NotificationTypesToBitMask(types []string) int { func IcingaStateTypeToString(stateType float32) string { if stateType == 0 { - return "hard" - } else { return "soft" + } else { + return "hard" } }