Skip to content

Commit

Permalink
Ensure schemaTarget for launch on old version is set to default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corneil du Plessis committed Oct 5, 2023
1 parent 101d489 commit 5e3912b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.springframework.cloud.dataflow.rest.resource.TaskExecutionsInfoResource;
import org.springframework.cloud.dataflow.rest.resource.about.AboutResource;
import org.springframework.cloud.dataflow.rest.util.DeploymentPropertiesUtils;
import org.springframework.cloud.dataflow.schema.SchemaVersionTarget;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.hateoas.Link;
import org.springframework.hateoas.RepresentationModel;
Expand Down Expand Up @@ -207,6 +208,7 @@ public LaunchResponseResource launch(String name, Map<String, String> properties
if(id != null) {
LaunchResponseResource response = new LaunchResponseResource();
response.setExecutionId(id);
response.setSchemaTarget(SchemaVersionTarget.defaultTarget().getName());
return response;
} else {
throw new RuntimeException("Expected id");
Expand Down

0 comments on commit 5e3912b

Please sign in to comment.