From 7de5fc889fbf11972b529cd5474ed23cf80f6e95 Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Mon, 16 Mar 2020 10:27:05 -0400 Subject: [PATCH] Fix Query in api MakeHardwareConfig Change-Id: I9ced78e73f49343bcb41b8e0de25d8b0223b14bd Signed-off-by: Parker Berberian --- src/api/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/models.py b/src/api/models.py index de73a7a..c61341e 100644 --- a/src/api/models.py +++ b/src/api/models.py @@ -941,7 +941,7 @@ class JobFactory(object): for res in resources: hardware_config = None try: - hardware_config = HardwareConfig.objects.get(relation__host=res) + hardware_config = HardwareConfig.objects.get(relation__resource_id=res.labid) except Exception: hardware_config = HardwareConfig() -- 2.16.6