|
|
@@ -78,11 +78,8 @@ public class DeployApp {
|
|
|
|
|
|
public Result addRemoteHost(RemoteMachine remoteMachine) {
|
|
|
Integer id = remoteMachine.getRemoteAgentConfig();
|
|
|
- String nodeType = remoteMachine.getNodeType();
|
|
|
RemoteHost remoteHost;
|
|
|
- if (NodeType.mgr.name().equals(nodeType)) {
|
|
|
- remoteHost = new RemoteHost(remoteMachine, null);
|
|
|
- } else if (id == null) {
|
|
|
+ if (id == null) {
|
|
|
return Result.fail("Remote agent config is required for agent node");
|
|
|
} else {
|
|
|
RemoteAgentConfig remoteAgentConfig = remoteAgentConfigRepository.findById(id).orElse(null);
|