Skip to content

Commit

Permalink
Fix new GetProbe logic not working with PRTG 20.3.60-20.3.61 where PR…
Browse files Browse the repository at this point in the history
…TG erroneously included an indexer in type_raw fields
  • Loading branch information
lordmilko committed Jun 2, 2021
1 parent be68aed commit 63d7315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PrtgAPI/Request/ResponseParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ internal static PrtgResponse ParseProbeResponse(string content)

foreach (var item in items)
{
if (item.Element("type_raw").Value != "probenode")
if (item.Element("type_raw").Value != "probenode" && !(item.Element("type_raw").Value?.StartsWith("probenode[") == true))
toRemove.Add(item);
else
remainingItems++;
Expand Down

0 comments on commit 63d7315

Please sign in to comment.