Merge ~ltrager/maas:lp1835289 into maas:master
Proposed by
Lee Trager
Status: | Merged |
---|---|
Approved by: | Lee Trager |
Approved revision: | 324b243fe4ee59d66f451fd5a473187e6917e1ae |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~ltrager/maas:lp1835289 |
Merge into: | maas:master |
Diff against target: |
253 lines (+126/-50) 4 files modified
src/maasserver/api/commissioning_scripts.py (+6/-3) src/maasserver/api/tests/test_commissioning.py (+39/-1) src/maasserver/forms/script.py (+68/-46) src/maasserver/forms/tests/test_script.py (+13/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Newell Jensen (community) | Approve | ||
Review via email: mp+369863@code.launchpad.net |
Commit message
LP: #1835289 - Fix error handling on the commissioning API.
The commissioning API was returning an exception instead or raising it. This
caused a 500 internal error with no readable error message. Fixing this
revealed the commissioning API cannot be used with embedded script YAML as
the commissioning API sets the script_type to commissioning. The form now
allows fields to be set as long as they match what is in the script YAML.
To post a comment you must log in.
Since this endpoint is deprecated, why are we not raising a message that says this when an admin tries using it?