From e94394a2c2c0ff8dd9ceb9a7e222cd1c19d2661d Mon Sep 17 00:00:00 2001
From: Adriaan Renting <renting@astron.nl>
Date: Thu, 7 Apr 2016 14:12:08 +0000
Subject: [PATCH] Task #8887: changed RATaskSpecified to handle non-otdb
 predecesors

---
 .../RATaskSpecifiedService/lib/RATaskSpecified.py         | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/SAS/ResourceAssignment/RATaskSpecifiedService/lib/RATaskSpecified.py b/SAS/ResourceAssignment/RATaskSpecifiedService/lib/RATaskSpecified.py
index f08699c6874..74891063945 100755
--- a/SAS/ResourceAssignment/RATaskSpecifiedService/lib/RATaskSpecified.py
+++ b/SAS/ResourceAssignment/RATaskSpecifiedService/lib/RATaskSpecified.py
@@ -208,16 +208,16 @@ class RATaskSpecified(OTDBBusListener):
 
         # Key contains values starting with 'S' = Scheduler, 'L'/'T' = OTDB, 'M' = MoM
         # 'S' we can probably ignore? Might be only internal in the Scheduler?
-        result = set()
+        result = []
         for s in stringlist:
             try: # Made the source a string for readability, but it's not efficient
                 if s.startswith('M'):
-                    result.add({'source': 'mom', 'id': int(s[1:])})
+                    result.append({'source': 'mom', 'id': int(s[1:])})
                 elif s.startswith('L') or s.startswith('T'):
-                    result.add({'source': 'otdb', 'id': int(s[1:])})
+                    result.append({'source': 'otdb', 'id': int(s[1:])})
                 else: # 'S'
                     logger.info("found a predecessor ID I can't handle: %s" % s)
-                    result.add({'source': 'other', 'id': int(s[1:])})
+                    result.append({'source': 'other', 'id': int(s[1:])})
             except ValueError:
                 logger.warning("found a predecessor ID that I can't parse %s" % s)
         return result
-- 
GitLab