diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2020-03-16 10:27:05 -0400 |
---|---|---|
committer | Parker Berberian <pberberian@iol.unh.edu> | 2020-03-16 10:27:05 -0400 |
commit | 7de5fc889fbf11972b529cd5474ed23cf80f6e95 (patch) | |
tree | 9bfcceec9528804c409408dfe3662b476550327b /src/api/models.py | |
parent | b360e0e417f787e0266268596d630b87e88283d1 (diff) |
Fix Query in api MakeHardwareConfig
Change-Id: I9ced78e73f49343bcb41b8e0de25d8b0223b14bd
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/api/models.py')
-rw-r--r-- | src/api/models.py | 2 |
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() |