New import script dumps traceback for any config file errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
High
|
Unassigned |
Bug Description
If something essential is missing from its config file, the new import script errors thusly:
2014-04-01 17:17:37,019 ERROR Unhandled exception; unable to continue.
Traceback (most recent call last):
File "/home/
main(args)
File "/home/
repo_boot = dumper.
File "/home/
super(
File "/usr/lib/
return self.sync_
File "/usr/lib/
self.
File "/usr/lib/
return self.sync_
File "/usr/lib/
self.
File "/home/
arch, subarches = item['arch'], item['subarches']
KeyError: u'subarches'
This is inelegant and unhelpful. It would be neater – and more useful – to say something like:
"Missing required config item 'subarches'."
Bonus points for providing the user with a description of what the subarches config item should look like in an ideal world.
Changed in maas: | |
status: | Triaged → Incomplete |
I could have sworn I already filed a bug and a kanban card for this, but I failed to find either.