Code Review
/
laas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b360e0e
)
Fix Query in api MakeHardwareConfig
91/69791/1
author
Parker Berberian
<pberberian@iol.unh.edu>
Mon, 16 Mar 2020 14:27:05 +0000
(10:27 -0400)
committer
Parker Berberian
<pberberian@iol.unh.edu>
Mon, 16 Mar 2020 14:27:05 +0000
(10:27 -0400)
Change-Id: I9ced78e73f49343bcb41b8e0de25d8b0223b14bd
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
src/api/models.py
patch
|
blob
|
history
diff --git
a/src/api/models.py
b/src/api/models.py
index
de73a7a
..
c61341e
100644
(file)
--- 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()