Send port number as string

SAL wants all environment variables sent as JSON strings.

Change-Id: I5e6229f420a18292ed18fbe46119ecc5e8b7ea89
This commit is contained in:
Rudi Schlatte 2024-05-22 10:38:43 +02:00
parent ab043a076f
commit 0c5b836e59

View File

@ -412,8 +412,8 @@ public class NebulousAppDeployer {
environment.put("ACTIVEMQ_HOST", Main.getAppBrokerAddress());
}
// Don't warn when those are unset, 5672 is usually the right call
environment.put("BROKER_PORT", Main.getAppBrokerPort());
environment.put("ACTIVEMQ_PORT", Main.getAppBrokerPort());
environment.put("BROKER_PORT", Integer.toString(Main.getAppBrokerPort()));
environment.put("ACTIVEMQ_PORT", Integer.toString(Main.getAppBrokerPort()));
if (Main.getOnmIp() == null || Main.getOnmIp().equals("")) {
log.warn("Overlay Network Manager address (ONM_IP) is not set, continuing without setting ONM_IP for the app");
} else {