Skip to content

Commit

Permalink
set content to null
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Dec 20, 2024
1 parent 2085003 commit 67cfc4f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
package org.apache.bigtop.manager.server.tools.functions;

import org.apache.bigtop.manager.common.utils.JsonUtils;
import org.apache.bigtop.manager.server.model.vo.PropertyVO;
import org.apache.bigtop.manager.server.model.vo.ServiceConfigVO;
import org.apache.bigtop.manager.server.model.vo.ServiceVO;
import org.apache.bigtop.manager.server.model.vo.StackVO;
import org.apache.bigtop.manager.server.service.StackService;
Expand Down Expand Up @@ -76,6 +78,14 @@ public Map<ToolSpecification, ToolExecutor> getServiceByName() {
for (StackVO stackVO : stackService.list()) {
for (ServiceVO serviceVO : stackVO.getServices()) {
if (serviceVO.getName().equals(serviceName)) {
for (ServiceConfigVO serviceConfigVO : serviceVO.getConfigs()) {
for (PropertyVO propertyVO : serviceConfigVO.getProperties()) {
if (propertyVO.getName().equals("content")) {
propertyVO.setValue(null);
}
}
}

return serviceVO.toString();
}
}
Expand Down

0 comments on commit 67cfc4f

Please sign in to comment.