diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-07-28 15:24:42 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-01 11:29:25 +0100 |
commit | ed6094f78c75aab776a82967101d9c57e38e2c4d (patch) | |
tree | 18a6e6898ccc7a165bc2eee0fa6f5bb1cd3c6237 /lib/toaster/bldcontrol/models.py | |
parent | f1d8e0ff7233f17cff3a56db10d2443b392b407d (diff) | |
download | bitbake-ed6094f78c75aab776a82967101d9c57e38e2c4d.tar.gz |
bitbake: toaster: Fix usage of wrong variables
Replaced nonexistent variable 'be' with self in
models.py/BuildEnvironment methods.
Fixed typo: BuildRequest.TYPE_LOCAL -> BuildEnvironment.TYPE_LOCAL
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/bldcontrol/models.py')
-rw-r--r-- | lib/toaster/bldcontrol/models.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/toaster/bldcontrol/models.py b/lib/toaster/bldcontrol/models.py index 6f408660d..b61de58a3 100644 --- a/lib/toaster/bldcontrol/models.py +++ b/lib/toaster/bldcontrol/models.py @@ -70,19 +70,19 @@ class BuildEnvironment(models.Model): return "binary/octet-stream" except ImportError: return "binary/octet-stream" - raise Exception("FIXME: artifact type not implemented for build environment type %s" % be.get_betype_display()) + raise Exception("FIXME: artifact type not implemented for build environment type %s" % self.get_betype_display()) def get_artifact(self, path): if self.betype == BuildEnvironment.TYPE_LOCAL: return open(path, "r") - raise Exception("FIXME: artifact download not implemented for build environment type %s" % be.get_betype_display()) + raise Exception("FIXME: artifact download not implemented for build environment type %s" % self.get_betype_display()) def has_artifact(self, path): import os - if self.betype == BuildRequest.TYPE_LOCAL: + if self.betype == BuildEnvironment.TYPE_LOCAL: return os.path.exists(path) - raise Exception("FIXME: has artifact not implemented for build environment type %s" % be.get_betype_display()) + raise Exception("FIXME: has artifact not implemented for build environment type %s" % self.get_betype_display()) # a BuildRequest is a request that the scheduler will build using a BuildEnvironment # the build request queue is the table itself, ordered by state |