From c318fef46ff0c5c226cc4220316a313a1a7c5d2c Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Wed, 22 Feb 2017 14:47:03 +0000
Subject: [PATCH] Task #10339: type cast for lookup in dict

---
 .../LTAIngestAdminServer/lib/ingestmomadapter.py                | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/LTA/LTAIngest/LTAIngestServer/LTAIngestAdminServer/lib/ingestmomadapter.py b/LTA/LTAIngest/LTAIngestServer/LTAIngestAdminServer/lib/ingestmomadapter.py
index 9a5f369dd8f..33aacc78cf8 100644
--- a/LTA/LTAIngest/LTAIngestServer/LTAIngestAdminServer/lib/ingestmomadapter.py
+++ b/LTA/LTAIngest/LTAIngestServer/LTAIngestAdminServer/lib/ingestmomadapter.py
@@ -181,7 +181,7 @@ class IngestMomAdapter:
             if 'otdb_id' not in job_dict:
                 return
 
-            otdb_id = job_dict['otdb_id']
+            otdb_id = int(job_dict['otdb_id'])
             mom2id = self.__momrpc.getMoMIdsForOTDBIds(otdb_id).get(otdb_id)
 
             if mom2id is None:
-- 
GitLab