Skip to content

Commit

Permalink
[INLONG-10650][Agent] When the installer updates the configuration, i…
Browse files Browse the repository at this point in the history
…t first checks the version
  • Loading branch information
justinwwhuang committed Jul 18, 2024
1 parent f365b9a commit 5d1fc7d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ public void restoreFromLocalFile(String confPath) {
JsonElement tmpElement = JsonParser.parseReader(reader).getAsJsonObject();
ConfigResult curConfig = GSON.fromJson(tmpElement.getAsJsonObject(), ConfigResult.class);
if (curConfig.getModuleList() != null) {
if (curConfig.getMd5() != null) {
currentMd5 = curConfig.getMd5();
}
if (curConfig.getVersion() != null) {
currentVersion = curConfig.getVersion();
}
if (curConfig.getMd5() != null) {
currentMd5 = curConfig.getMd5();
}
if (curConfig.getVersion() != null) {
currentVersion = curConfig.getVersion();
}
curConfig.getModuleList().forEach((module) -> {
currentModules.put(module.getId(), module);
});
Expand Down

0 comments on commit 5d1fc7d

Please sign in to comment.