From 05b91c29218c0c21a6b8af6e90ed2c7cd0a92fed Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Sat, 1 Oct 2022 14:46:04 +0200
Subject: [PATCH] TMSS-1967: get latest version

---
 SAS/TMSS/client/lib/tmss_http_rest_client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SAS/TMSS/client/lib/tmss_http_rest_client.py b/SAS/TMSS/client/lib/tmss_http_rest_client.py
index 788a7f2e419..dc12eb29c58 100644
--- a/SAS/TMSS/client/lib/tmss_http_rest_client.py
+++ b/SAS/TMSS/client/lib/tmss_http_rest_client.py
@@ -562,7 +562,7 @@ class TMSSsession(object):
         """create a scheduling_unit_draft and instantiate the task graph from the given specifications_doc.
         returns the created scheduling_unit_draft upon success, or raises."""
         scheduling_constraints_template = self.get_scheduling_constraints_template(name=specifications_doc.get('scheduling_constraints_template', {'name': 'constraints'}).get('name'),
-                                                                                   version=specifications_doc.get('scheduling_constraints_template', {'version': 1}).get('version'))
+                                                                                   version=specifications_doc.get('scheduling_constraints_template', {'version': 4}).get('version'))
         scheduling_constraints_doc = specifications_doc.get('scheduling_constraints_dec', self.get_url_as_json_object(scheduling_constraints_template['url']+'/default'))
 
         # assume we use the one and only scheduling_unit_template
-- 
GitLab