From 8fe52c3f2535605737d380931217770a9dfaefdc Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 12 Apr 2021 22:15:27 -0700 Subject: [PATCH] Fixed: Custom Script Health Issue Level (cherry picked from commit 5938c38bc3a76d1f1e105fb54d5d7f59aa207278) --- src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs index 484f13fea..9f78d347f 100644 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -149,7 +149,7 @@ namespace NzbDrone.Core.Notifications.CustomScript var environmentVariables = new StringDictionary(); environmentVariables.Add("Lidarr_EventType", "HealthIssue"); - environmentVariables.Add("Lidarr_Health_Issue_Level", nameof(healthCheck.Type)); + environmentVariables.Add("Lidarr_Health_Issue_Level", Enum.GetName(typeof(HealthCheckResult), healthCheck.Type)); environmentVariables.Add("Lidarr_Health_Issue_Message", healthCheck.Message); environmentVariables.Add("Lidarr_Health_Issue_Type", healthCheck.Source.Name); environmentVariables.Add("Lidarr_Health_Issue_Wiki", healthCheck.WikiUrl.ToString() ?? string.Empty);