fix cloning configuration last desc (#4697)

This commit is contained in:
haoyann 2021-01-15 19:41:46 +08:00 committed by GitHub
parent 63513b44f2
commit de23466363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -669,6 +669,7 @@ public class ConfigController {
if (StringUtils.isNotBlank(ci.getAppName())) { if (StringUtils.isNotBlank(ci.getAppName())) {
ci4save.setAppName(ci.getAppName()); ci4save.setAppName(ci.getAppName());
} }
ci4save.setDesc(ci.getDesc());
configInfoList4Clone.add(ci4save); configInfoList4Clone.add(ci4save);
} }

View File

@ -2351,6 +2351,7 @@ public class EmbeddedStoragePersistServiceImpl implements PersistService {
configAdvanceInfo = new HashMap<>(16); configAdvanceInfo = new HashMap<>(16);
} }
configAdvanceInfo.put("type", type); configAdvanceInfo.put("type", type);
configAdvanceInfo.put("desc", configInfo.getDesc());
try { try {
addConfigInfo(srcIp, srcUser, configInfo2Save, time, configAdvanceInfo, notify, callFinally); addConfigInfo(srcIp, srcUser, configInfo2Save, time, configAdvanceInfo, notify, callFinally);
succCount++; succCount++;

View File

@ -2599,6 +2599,7 @@ public class ExternalStoragePersistServiceImpl implements PersistService {
configAdvanceInfo = new HashMap<>(16); configAdvanceInfo = new HashMap<>(16);
} }
configAdvanceInfo.put("type", type); configAdvanceInfo.put("type", type);
configAdvanceInfo.put("desc", configInfo.getDesc());
try { try {
addConfigInfo(srcIp, srcUser, configInfo2Save, time, configAdvanceInfo, notify); addConfigInfo(srcIp, srcUser, configInfo2Save, time, configAdvanceInfo, notify);
succCount++; succCount++;