From 853a15087d876ff033bd41e5d7e339f70fafb3c2 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 24 Jan 2021 23:35:34 -0500 Subject: [PATCH] Fix Enum.GetName call --- src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs index 98ced05c4..b954697c2 100755 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -6,6 +6,7 @@ using NLog; using NzbDrone.Common.Disk; using NzbDrone.Common.Extensions; using NzbDrone.Common.Processes; +using NzbDrone.Core.HealthCheck; using NzbDrone.Core.ThingiProvider; using NzbDrone.Core.Validation; @@ -35,7 +36,7 @@ namespace NzbDrone.Core.Notifications.CustomScript var environmentVariables = new StringDictionary(); environmentVariables.Add("Prowlarr_EventType", "HealthIssue"); - environmentVariables.Add("Prowlarr_Health_Issue_Level", nameof(healthCheck.Type)); + environmentVariables.Add("Prowlarr_Health_Issue_Level", Enum.GetName(typeof(HealthCheckResult), healthCheck.Type)); environmentVariables.Add("Prowlarr_Health_Issue_Message", healthCheck.Message); environmentVariables.Add("Prowlarr_Health_Issue_Type", healthCheck.Source.Name); environmentVariables.Add("Prowlarr_Health_Issue_Wiki", healthCheck.WikiUrl.ToString() ?? string.Empty);