mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 12:42:38 +00:00
fix missing LatestAgentSha256/Version mapping in AdminConfiguration table entity
The CI/CD pipeline correctly writes these fields via REST Merge, but ConvertFromAdminTableEntity never read them back — causing the agent to always skip the post-config binary integrity check. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+8
-2
@@ -524,7 +524,10 @@ namespace AutopilotMonitor.Functions.DataAccess.TableStorage
|
||||
{ "OpsAlertTeamsEnabled", config.OpsAlertTeamsEnabled },
|
||||
{ "OpsAlertTeamsWebhookUrl", config.OpsAlertTeamsWebhookUrl ?? string.Empty },
|
||||
{ "OpsAlertSlackEnabled", config.OpsAlertSlackEnabled },
|
||||
{ "OpsAlertSlackWebhookUrl", config.OpsAlertSlackWebhookUrl ?? string.Empty }
|
||||
{ "OpsAlertSlackWebhookUrl", config.OpsAlertSlackWebhookUrl ?? string.Empty },
|
||||
// Agent binary integrity (written by CI/CD pipeline via Merge, but must be round-trippable)
|
||||
{ "LatestAgentVersion", config.LatestAgentVersion ?? string.Empty },
|
||||
{ "LatestAgentSha256", config.LatestAgentSha256 ?? string.Empty }
|
||||
};
|
||||
|
||||
return entity;
|
||||
@@ -557,7 +560,10 @@ namespace AutopilotMonitor.Functions.DataAccess.TableStorage
|
||||
OpsAlertTeamsEnabled = entity.GetBoolean("OpsAlertTeamsEnabled") ?? false,
|
||||
OpsAlertTeamsWebhookUrl = entity.GetString("OpsAlertTeamsWebhookUrl"),
|
||||
OpsAlertSlackEnabled = entity.GetBoolean("OpsAlertSlackEnabled") ?? false,
|
||||
OpsAlertSlackWebhookUrl = entity.GetString("OpsAlertSlackWebhookUrl")
|
||||
OpsAlertSlackWebhookUrl = entity.GetString("OpsAlertSlackWebhookUrl"),
|
||||
// Agent binary integrity (written by CI/CD pipeline)
|
||||
LatestAgentVersion = entity.GetString("LatestAgentVersion") ?? string.Empty,
|
||||
LatestAgentSha256 = entity.GetString("LatestAgentSha256") ?? string.Empty
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user