From fdb3030496d9d64baa64c0f3d014849e8d5f0837 Mon Sep 17 00:00:00 2001 From: dingo Date: Wed, 8 Apr 2026 11:37:07 -0400 Subject: [PATCH] entity resolver change --- src/MaxInventory.Core/Services/EntityValueResolver.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/MaxInventory.Core/Services/EntityValueResolver.cs b/src/MaxInventory.Core/Services/EntityValueResolver.cs index 5866239..defc2a6 100644 --- a/src/MaxInventory.Core/Services/EntityValueResolver.cs +++ b/src/MaxInventory.Core/Services/EntityValueResolver.cs @@ -205,7 +205,11 @@ public static class EntityValueResolver { Add("host"); Add("hostname"); - Add("host_id"); + } + + if (string.Equals(jsonKey, "host_id", StringComparison.OrdinalIgnoreCase)) + { + Add("host"); } if (string.Equals(jsonKey, "data_center_zone", StringComparison.OrdinalIgnoreCase)) @@ -299,4 +303,4 @@ public static class EntityValueResolver return builder.ToString(); } -} \ No newline at end of file +}