Skip to content

Commit

Permalink
Code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
“v_kkhuang” committed Oct 30, 2024
1 parent 82fcf60 commit b15d84c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,14 @@ public Message saveFullTree(HttpServletRequest req, @RequestBody JsonNode json)
configKeyValue.setConfigValue(sparkConf);
}
if (AESUtils.LINKIS_DATASOURCE_AES_SWITCH.getValue()
&& configKeyValue.getKey().equals("linkis.nebula.password")
&& (configKeyValue.getKey().equals("linkis.nebula.password")
|| configKeyValue.getKey().equals("wds.linkis.jdbc.password"))
&& StringUtils.isNotBlank(configKeyValue.getConfigValue())) {
List<ConfigKeyValue> configByLabelIds =
configurationService.getConfigByLabelId(configKeyValue.getConfigLabelId(), null);
for (ConfigKeyValue configByLabelId : configByLabelIds) {
if (configByLabelId.getKey().equals("linkis.nebula.password")
if ((configByLabelId.getKey().equals("linkis.nebula.password")
|| configByLabelId.getKey().equals("wds.linkis.jdbc.password"))
&& !configByLabelId.getConfigValue().equals(configKeyValue.getConfigValue())) {
configKeyValue.setConfigValue(
AESUtils.encrypt(
Expand Down

0 comments on commit b15d84c

Please sign in to comment.