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 2f46370 commit 664ee3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public void restoreFromLocalFile(String confPath) {
new FileInputStream(localModuleConfigPath), StandardCharsets.UTF_8)) {
JsonElement tmpElement = JsonParser.parseReader(reader).getAsJsonObject();
ConfigResult curConfig = GSON.fromJson(tmpElement.getAsJsonObject(), ConfigResult.class);
if (curConfig.getMd5() != null && curConfig.getModuleList() != null) {
if (curConfig.getModuleList() != null) {
if (curConfig.getMd5() != null && curConfig.getVersion() != null) {
currentMd5 = curConfig.getMd5();
currentVersion = curConfig.getVersion();
Expand Down

0 comments on commit 664ee3b

Please sign in to comment.