Ensure management.port=-1 switches off actuator endpoints in turbine
This commit is contained in:
@@ -32,7 +32,7 @@ public class TurbinePortApplicationListener implements
|
||||
ports.put("turbine.amqp.port", serverPort);
|
||||
}
|
||||
}
|
||||
else if (managementPort != null && serverPort == null) {
|
||||
else if (managementPort != null && managementPort != -1 && serverPort == null) {
|
||||
// User wants 2 ports, but hasn't specified server.port explicitly
|
||||
ports.put("server.port", managementPort);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user