From 0c5b836e594208e5726b7a3a09b7286352e67a77 Mon Sep 17 00:00:00 2001 From: Rudi Schlatte Date: Wed, 22 May 2024 10:38:43 +0200 Subject: [PATCH] Send port number as string SAL wants all environment variables sent as JSON strings. Change-Id: I5e6229f420a18292ed18fbe46119ecc5e8b7ea89 --- .../optimiser/controller/NebulousAppDeployer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/optimiser-controller/src/main/java/eu/nebulouscloud/optimiser/controller/NebulousAppDeployer.java b/optimiser-controller/src/main/java/eu/nebulouscloud/optimiser/controller/NebulousAppDeployer.java index 9d5ab50..3a725d6 100644 --- a/optimiser-controller/src/main/java/eu/nebulouscloud/optimiser/controller/NebulousAppDeployer.java +++ b/optimiser-controller/src/main/java/eu/nebulouscloud/optimiser/controller/NebulousAppDeployer.java @@ -412,8 +412,8 @@ public static void deployApplication(NebulousApp app, JsonNode kubevela) { 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 {