Merge lp:~mwhudson/lava-scheduler/more-helpful-401s-bug-917390 into lp:lava-scheduler
Status: | Merged |
---|---|
Approved by: | Zygmunt Krynicki |
Approved revision: | 120 |
Merged at revision: | 121 |
Proposed branch: | lp:~mwhudson/lava-scheduler/more-helpful-401s-bug-917390 |
Merge into: | lp:lava-scheduler |
Diff against target: |
20 lines (+7/-2) 1 file modified
lava_scheduler_app/api.py (+7/-2) |
To merge this branch: | bzr merge lp:~mwhudson/lava-scheduler/more-helpful-401s-bug-917390 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zygmunt Krynicki (community) | Approve | ||
Review via email: mp+90036@code.launchpad.net |
Description of the change
This changes the permission errors produced by submit_job a bit. They now look like this:
$ lava-tool submit-job http://
EXPERIMENTAL - SUBJECT TO CHANGE (See --experimental-
ERROR: <Fault 401: 'Authentication with user and token required for this API.'>
$ lava-tool submit-job http://
EXPERIMENTAL - SUBJECT TO CHANGE (See --experimental-
ERROR: <Fault 403: "Permission denied. User u'test' does not have the 'lava_scheduler
Let me know what you think (I think we could possibly try to display the errors a little better, but that's a client side thing).
+1