AttributeError: 'Colorizer' object has no attribute 'header_'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PlainBox (Toolkit) |
Fix Released
|
High
|
Daniel Manrique |
Bug Description
WHen running a job with a requirement on a non-existent resource, I get a crash and trace ending in:
File "/src/checkbox/
print(
AttributeError: 'Colorizer' object has no attribute 'header_'
How to reproduce:
- mk-venv your checkbox tree and develop it.
- Create a something.txt file in the checkbox provider's jobs directory
- Add this job (note the bogus resource in the requirement):
id: roadmr
plugin: shell
command: none
requires: 'ka' in bogusinfo.platform
_description: test
Run the job:
run -i 2013.com.
Expected result:
- A warning about non-existent resource, but no crash
Actual result:
- Crash ending as seen above.
This patch fixes it (but it may not be the correct solution):
=== modified file 'plainbox/
--- plainbox/
+++ plainbox/
@@ -891,7 +891,7 @@
def _update_
if problem_list:
- print(self.
+ print(self.
for problem in problem_list:
With that, running the job results in this:
=======
=======
There were some problems with the selected jobs
* missing dependency: '2013.com.
Problematic jobs will not be considered
=======
This session is about 0.00% complete
Estimated duration cannot be determined for automated jobs.
Estimated duration cannot be determined for manual jobs.
Size of the desired job list: 0
Size of the effective execution plan: 0
=======
=======
The problem was introduced as a small mistake in commit 3038 (2014-05-29), in a sub-commit that reads "use C.header() for all headers".
Changed in plainbox: | |
milestone: | 0.10 → 0.12 |
milestone: | 0.12 → 0.11 |
Changed in plainbox: | |
assignee: | nobody → Daniel Manrique (roadmr) |
status: | Triaged → Fix Committed |
Changed in plainbox: | |
status: | Fix Committed → Fix Released |