aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2020-03-16 10:27:05 -0400
committerParker Berberian <pberberian@iol.unh.edu>2020-03-16 10:27:05 -0400
commit7de5fc889fbf11972b529cd5474ed23cf80f6e95 (patch)
tree9bfcceec9528804c409408dfe3662b476550327b /src/api
parentb360e0e417f787e0266268596d630b87e88283d1 (diff)
Fix Query in api MakeHardwareConfig
Change-Id: I9ced78e73f49343bcb41b8e0de25d8b0223b14bd Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/api')
-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()