aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-03-16 19:38:56 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-03-16 19:38:56 +0000
commit3e900016144770b58a9f6ace84600560a50c2085 (patch)
tree7ed8793fa377b9cca45c4e4768d811230c1e1c5f
parent9f52dfc426fceec2324d9a011a6318becc70deb0 (diff)
parent7de5fc889fbf11972b529cd5474ed23cf80f6e95 (diff)
Merge "Fix Query in api MakeHardwareConfig" into resource
-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()