diff options
Diffstat (limited to 'src/api')
-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 d8e023b..df9bbf7 100644 --- a/src/api/models.py +++ b/src/api/models.py @@ -947,7 +947,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() |