From fd9402e4ad1dcdd913d8f8c544ae924c4a28bafb Mon Sep 17 00:00:00 2001 From: Ankica Barisic <156663621+ankicabarisic@users.noreply.github.com> Date: Wed, 22 May 2024 12:40:57 +0200 Subject: [PATCH] Akki env vars (#80) * cluster log update * increasing the lenght of ENV column --- .../src/main/java/org/ow2/proactive/sal/model/Cluster.java | 2 +- .../org/ow2/proactive/sal/service/service/ClusterService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sal-common/src/main/java/org/ow2/proactive/sal/model/Cluster.java b/sal-common/src/main/java/org/ow2/proactive/sal/model/Cluster.java index bff0ccb..2a74987 100644 --- a/sal-common/src/main/java/org/ow2/proactive/sal/model/Cluster.java +++ b/sal-common/src/main/java/org/ow2/proactive/sal/model/Cluster.java @@ -70,7 +70,7 @@ public class Cluster { @JsonProperty("status") private String status = "defined"; - @Column(name = "ENV") + @Column(name = "ENV", columnDefinition = "text", length = 65535) @JsonProperty("env-var-script") private String envVars; diff --git a/sal-service/src/main/java/org/ow2/proactive/sal/service/service/ClusterService.java b/sal-service/src/main/java/org/ow2/proactive/sal/service/service/ClusterService.java index 8b7815b..26f2c11 100644 --- a/sal-service/src/main/java/org/ow2/proactive/sal/service/service/ClusterService.java +++ b/sal-service/src/main/java/org/ow2/proactive/sal/service/service/ClusterService.java @@ -65,7 +65,7 @@ public boolean defineCluster(String sessionId, ClusterDefinition clusterDefiniti if (!paGatewayService.isConnectionActive(sessionId)) { throw new NotConnectedException(); } - Validate.notNull(clusterDefinition, "The received Byon node definition is empty. Nothing to be defined."); + Validate.notNull(clusterDefinition, "The received Cluster definition is empty. Nothing to be defined."); LOGGER.info("defineCluster endpoint is called to define the cluster: " + clusterDefinition.getName()); // TODO: