diff options
author | David Reyna <David.Reyna@windriver.com> | 2017-06-14 21:54:32 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-22 09:23:38 +0100 |
commit | 9e622784e16cc38e1334979557f90ce87e9408a1 (patch) | |
tree | e63ad5886f52bb142c23b4708da4df112c31c724 | |
parent | 282afb771d995ed85d082808cba3906a2620b41c (diff) | |
download | poky-9e622784e16cc38e1334979557f90ce87e9408a1.tar.gz |
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>
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 6c5cfcd711..a49f9a432a 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -225,16 +225,16 @@ class Project(models.Model): | |||
225 | return( -1 ) | 225 | return( -1 ) |
226 | 226 | ||
227 | def get_last_outcome(self): | 227 | def get_last_outcome(self): |
228 | build_id = self.get_last_build_id | 228 | build_id = self.get_last_build_id() |
229 | if (-1 == build_id): | 229 | if (-1 == build_id): |
230 | return( "" ) | 230 | return( "" ) |
231 | try: | 231 | try: |
232 | return Build.objects.filter( id = self.get_last_build_id )[ 0 ].outcome | 232 | return Build.objects.filter( id = build_id )[ 0 ].outcome |
233 | except (Build.DoesNotExist,IndexError): | 233 | except (Build.DoesNotExist,IndexError): |
234 | return( "not_found" ) | 234 | return( "not_found" ) |
235 | 235 | ||
236 | def get_last_target(self): | 236 | def get_last_target(self): |
237 | build_id = self.get_last_build_id | 237 | build_id = self.get_last_build_id() |
238 | if (-1 == build_id): | 238 | if (-1 == build_id): |
239 | return( "" ) | 239 | return( "" ) |
240 | try: | 240 | try: |
@@ -243,7 +243,7 @@ class Project(models.Model): | |||
243 | return( "not_found" ) | 243 | return( "not_found" ) |
244 | 244 | ||
245 | def get_last_errors(self): | 245 | def get_last_errors(self): |
246 | build_id = self.get_last_build_id | 246 | build_id = self.get_last_build_id() |
247 | if (-1 == build_id): | 247 | if (-1 == build_id): |
248 | return( 0 ) | 248 | return( 0 ) |
249 | try: | 249 | try: |
@@ -252,7 +252,7 @@ class Project(models.Model): | |||
252 | return( "not_found" ) | 252 | return( "not_found" ) |
253 | 253 | ||
254 | def get_last_warnings(self): | 254 | def get_last_warnings(self): |
255 | build_id = self.get_last_build_id | 255 | build_id = self.get_last_build_id() |
256 | if (-1 == build_id): | 256 | if (-1 == build_id): |
257 | return( 0 ) | 257 | return( 0 ) |
258 | try: | 258 | try: |
@@ -269,7 +269,7 @@ class Project(models.Model): | |||
269 | return last_build.get_image_file_extensions() | 269 | return last_build.get_image_file_extensions() |
270 | 270 | ||
271 | def get_last_imgfiles(self): | 271 | def get_last_imgfiles(self): |
272 | build_id = self.get_last_build_id | 272 | build_id = self.get_last_build_id() |
273 | if (-1 == build_id): | 273 | if (-1 == build_id): |
274 | return( "" ) | 274 | return( "" ) |
275 | try: | 275 | try: |