Merge lp:~achiang/hydrazine/hydrazine-fix-official-tags into lp:hydrazine
Status: | Merged |
---|---|
Merged at revision: | 94 |
Proposed branch: | lp:~achiang/hydrazine/hydrazine-fix-official-tags |
Merge into: | lp:hydrazine |
Diff against target: |
16 lines (+4/-1) 1 file modified
bugclient (+4/-1) |
To merge this branch: | bzr merge lp:~achiang/hydrazine/hydrazine-fix-official-tags |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pool | Approve | ||
Review via email: mp+79059@code.launchpad.net |
Description of the change
bugclient: fix stacktrace in do_official_tags when there are no tags
Slight refactor of logic to return early if there are no official tags
defined for a pillar. Without this fix, we get the following stack trace:
Traceback (most recent call last):
File "./bugclient", line 519, in <module>
main(
File "./bugclient", line 515, in main
cmd.cmdloop()
File "/usr/lib/
stop = self.onecmd(line)
File "./bugclient", line 379, in onecmd
return cmd.Cmd.
File "/usr/lib/
return func(arg)
File "./bugclient", line 233, in do_official_tags
_
File "./bugclient", line 465, in _show_columnated
longest = max(map(len, tags))
ValueError: max() arg is an empty sequence
vote approve