Skip to content

Commit

Permalink
Update inlong-agent/agent-installer/src/main/java/org/apache/inlong/a…
Browse files Browse the repository at this point in the history
…gent/installer/ModuleManager.java

Co-authored-by: AloysZhang <[email protected]>
  • Loading branch information
justinwwhuang and aloyszhang authored Jul 18, 2024
1 parent 664ee3b commit f365b9a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +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 && curConfig.getVersion() != null) {
currentMd5 = curConfig.getMd5();
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 f365b9a

Please sign in to comment.