From 83b1e037d5a103d3ac95efc57eef067c61d98552 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 7319aad6e..a34601e21 100755 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -8,6 +8,7 @@ using NLog; using NzbDrone.Common.Disk; using NzbDrone.Common.Extensions; using NzbDrone.Common.Processes; +using NzbDrone.Core.HealthCheck; using NzbDrone.Core.Movies; using NzbDrone.Core.ThingiProvider; using NzbDrone.Core.Validation; @@ -121,7 +122,7 @@ namespace NzbDrone.Core.Notifications.CustomScript var environmentVariables = new StringDictionary(); environmentVariables.Add("Radarr_EventType", "HealthIssue"); - environmentVariables.Add("Radarr_Health_Issue_Level", Enum.GetName(healthCheck.Type)); + environmentVariables.Add("Radarr_Health_Issue_Level", Enum.GetName(typeof(HealthCheckResult), healthCheck.Type)); environmentVariables.Add("Radarr_Health_Issue_Message", healthCheck.Message); environmentVariables.Add("Radarr_Health_Issue_Type", healthCheck.Source.Name); environmentVariables.Add("Radarr_Health_Issue_Wiki", healthCheck.WikiUrl.ToString() ?? string.Empty);