Skip to content

Commit

Permalink
Set the flag when dynamic configs are set
Browse files Browse the repository at this point in the history
  • Loading branch information
deepthi912 committed Oct 16, 2024
1 parent cf01c68 commit 91b7642
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,11 @@ public static List<Configuration> applyDynamicEnvConfig(List<Configuration> conf
dynamicEnvConfigVarName);
}
}
//Make sure the env variable is not re read twice by setting the property of Templated = true
configuration.setProperty(TEMPLATED_KEY, true);
//set the property when dynamic.env.config property is specified
if (configuration.getStringArray(ENV_DYNAMIC_CONFIG_KEY).length != 0) {
//Make sure the env variable is not re read twice by setting the property of Templated = true
configuration.setProperty(TEMPLATED_KEY, true);
}
}).collect(Collectors.toList());
}

Expand Down

0 comments on commit 91b7642

Please sign in to comment.