aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2017-06-14 21:54:32 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-27 22:32:54 +0100
commit98e424c2cd3ce8bc7df247263e44a6d6d9ede3e6 (patch)
tree8e7f40576ef18fa703dc1d5cbe75be134a545f37
parente95ed33726b2a6d03382e07c6efe2ab574f84ee8 (diff)
downloadbitbake-98e424c2cd3ce8bc7df247263e44a6d6d9ede3e6.tar.gz
bitbake-98e424c2cd3ce8bc7df247263e44a6d6d9ede3e6.tar.bz2
bitbake-98e424c2cd3ce8bc7df247263e44a6d6d9ede3e6.zip
toaster: get_last_build_id not called correctly
The method "get_last_build_id" missing the "()" in several calls. This has been failing silently with Django 1.8 but intermittently crash with Django 1.9. [YOCTO #11570] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/orm/models.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py
index 6c5cfcd7..a49f9a43 100644
--- a/lib/toaster/orm/models.py
+++ b/lib/toaster/orm/models.py
@@ -225,16 +225,16 @@ class Project(models.Model):
return( -1 )
def get_last_outcome(self):
- build_id = self.get_last_build_id
+ build_id = self.get_last_build_id()
if (-1 == build_id):
return( "" )
try:
- return Build.objects.filter( id = self.get_last_build_id )[ 0 ].outcome
+ return Build.objects.filter( id = build_id )[ 0 ].outcome
except (Build.DoesNotExist,IndexError):
return( "not_found" )
def get_last_target(self):
- build_id = self.get_last_build_id
+ build_id = self.get_last_build_id()
if (-1 == build_id):
return( "" )
try:
@@ -243,7 +243,7 @@ class Project(models.Model):
return( "not_found" )
def get_last_errors(self):
- build_id = self.get_last_build_id
+ build_id = self.get_last_build_id()
if (-1 == build_id):
return( 0 )
try:
@@ -252,7 +252,7 @@ class Project(models.Model):
return( "not_found" )
def get_last_warnings(self):
- build_id = self.get_last_build_id
+ build_id = self.get_last_build_id()
if (-1 == build_id):
return( 0 )
try:
@@ -269,7 +269,7 @@ class Project(models.Model):
return last_build.get_image_file_extensions()
def get_last_imgfiles(self):
- build_id = self.get_last_build_id
+ build_id = self.get_last_build_id()
if (-1 == build_id):
return( "" )
try: