Skip to content

Commit 2e8f708

Browse files
author
Corneil du Plessis
committed
Update Task Thin Executions list function for parity with 2.11.x
Updated task thin executions link handing and added extra test for parity with 2.11.x. Update minimum supported version of client. See spring-attic#6062
1 parent 3f80045 commit 2e8f708

File tree

1 file changed

+6
-1
lines changed
  • spring-cloud-dataflow-rest-client/src/main/java/org/springframework/cloud/dataflow/rest/client

1 file changed

+6
-1
lines changed

spring-cloud-dataflow-rest-client/src/main/java/org/springframework/cloud/dataflow/rest/client/TaskTemplate.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@ public class TaskTemplate implements TaskOperations {
142142
this.restTemplate = restTemplate;
143143

144144
String version = VersionUtils.getThreePartVersion(dataFlowServerVersion);
145-
Assert.isTrue(VersionUtils.isDataFlowServerVersionGreaterThanOrEqualToRequiredVersion(version, VALIDATION_MIN_VERSION), () -> "Minimum Data Flow version required is " + VALIDATION_MIN_VERSION + " but got " + version);
145+
if (StringUtils.hasText(version)) {
146+
Assert.isTrue(
147+
VersionUtils.isDataFlowServerVersionGreaterThanOrEqualToRequiredVersion(version,
148+
VALIDATION_MIN_VERSION),
149+
() -> "Minimum Data Flow version required is " + VALIDATION_MIN_VERSION + " but got " + version);
150+
}
146151

147152
this.aboutLink = resources.getLink("about").get();
148153

0 commit comments

Comments
 (0)