Skip to content

Commit

Permalink
fix bug system.argumentexception when creating new tracked incident
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikx committed Apr 27, 2020
1 parent 1492740 commit 6107886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static void RunActions(Configuration.Host host, bool failed)
Console.WriteLine("Service failed. Creating new incident");
int id = Convert.ToInt32((((api.CreateIncident(action.incident_parameters.title, action.incident_parameters.message, action.incident_parameters.status, 2, action.incident_parameters.component_id, action.incident_parameters.componentstatus))["data"])["id"]));
trackedIncidents.Remove(id);
failedComponents.Remove(id);
failedComponents.Remove(action.incident_parameters.component_id.Value);
trackedIncidents.Add(id, host.path);
if (action.incident_parameters.component_id != null)
{
Expand Down

0 comments on commit 6107886

Please sign in to comment.