[bitbake-devel] [PATCH 2/5] toaster: Fix typo in returning pk list of layer versions in current project
Elliot Smith
elliot.smith at intel.com
Fri Oct 9 09:32:40 UTC 2015
From: Michael Wood <michael.g.wood at intel.com>
This was accidentally returning the primary key of the ProjectLayer
rather than the ProjectLayer.Layer_Version.pk
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: Elliot Smith <elliot.smith at intel.com>
---
lib/toaster/orm/models.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py
index 375985e..1cbf480 100644
--- a/lib/toaster/orm/models.py
+++ b/lib/toaster/orm/models.py
@@ -222,7 +222,7 @@ class Project(models.Model):
if pk is False:
return layer_versions
else:
- return layer_versions.values_list('pk', flat=True)
+ return layer_versions.values_list('layercommit__pk', flat=True)
def get_available_machines(self):
--
1.9.3
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
More information about the bitbake-devel
mailing list