1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-07 16:59:22 +00:00

bitbake: 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]

(Bitbake rev: c29e137a6e65317b8a36804126511c2137878715)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
David Reyna
2017-06-14 21:54:32 -07:00
committed by Richard Purdie
parent 282afb771d
commit 9e622784e1
+6 -6
View File
@@ -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: