Skip to content

Commit

Permalink
Send port number as string
Browse files Browse the repository at this point in the history
SAL wants all environment variables sent as JSON strings.

Change-Id: I5e6229f420a18292ed18fbe46119ecc5e8b7ea89
  • Loading branch information
rudi committed May 22, 2024
1 parent ab043a0 commit 0c5b836
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0c5b836

Please sign in to comment.