aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/api/models.py2
1 files changed, 1 insertions, 1 deletions
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()