Fix CMS-Connect

This commit is contained in:
Samuele E. Locatelli
2020-10-22 16:15:39 +02:00
parent 0a8e49082d
commit 510b6c8a96
7 changed files with 231 additions and 108 deletions
+9 -1
View File
@@ -1140,7 +1140,7 @@ public static class ThreadsFunctions
NcAdapter ncAdapter = new NcAdapter();
try
{
//Write all the datamodel
if (!RedisController.WriteDatamodel(CMSConnectDataModel))
ManageError(ERROR_LEVEL.FATAL, CMS_CONNECT_SETUP_ALARM_MESSAGE);
@@ -1153,6 +1153,14 @@ public static class ThreadsFunctions
if (!RedisController.WriteActiveVersion(SupportFunctions.GetSoftwareVersionAndBuildDate()))
ManageError(ERROR_LEVEL.FATAL, CMS_CONNECT_SETUP_ALARM_MESSAGE);
//Write the Overrides
if (!RedisController.WriteFakeOverrides(1))
ManageError(ERROR_LEVEL.FATAL, CMS_CONNECT_SETUP_ALARM_MESSAGE);
var ts = DateTime.UtcNow.ToString("o");
var a = "{\"v\": { \"PART_COUNT\": 0}\"ts\": " + ts + "}";
RedisController.WriteMachineEventKpis(a);
List<DTOLanguageModel> availableLanguages = LanguageController.GetLanguageListFromDirectory();
if (availableLanguages == null)
return;