aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-06-29 17:43:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-02 22:55:50 +0100
commit4338ab03826df3353e1222f0bd825dfdd04dd933 (patch)
tree6bcc13b9898ffc40ec0f8c3bd3cd4f19785e9b20
parent3500b59cbfd006a83bab9431f434f98c1944a0ac (diff)
downloadbitbake-4338ab03826df3353e1222f0bd825dfdd04dd933.tar.gz
toaster: runbuilds Fix incorrect variable name
The recent refactoring moved this enum value to BuildRequests table rather than Build. Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/bldcontrol/management/commands/runbuilds.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/bldcontrol/management/commands/runbuilds.py b/lib/toaster/bldcontrol/management/commands/runbuilds.py
index 33cc94ea8..e3a1fdbf6 100644
--- a/lib/toaster/bldcontrol/management/commands/runbuilds.py
+++ b/lib/toaster/bldcontrol/management/commands/runbuilds.py
@@ -130,7 +130,7 @@ class Command(NoArgsCommand):
# update all BuildRequests without a build created
for br in BuildRequest.objects.filter(build = None):
br.build = Build.objects.create(project = br.project, completed_on = br.updated, started_on = br.created)
- br.build.outcome = Build.REQ_FAILED
+ br.build.outcome = BuildRequest.REQ_FAILED
try:
br.build.machine = br.brvariable_set.get(name='MACHINE').value
except BRVariable.DoesNotExist: