Merge ~ltrager/maas:lp1835289_2.6 into maas:2.6
Proposed by
Lee Trager
Status: | Merged |
---|---|
Approved by: | Lee Trager |
Approved revision: | e0be9ea77aa3da21e6d794a40d28ed29514a43b2 |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~ltrager/maas:lp1835289_2.6 |
Merge into: | maas:2.6 |
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 |
---|---|---|---|
Lee Trager (community) | Approve | ||
Review via email: mp+369978@code.launchpad.net |
Commit message
Backport of 36d5dd0 - 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.
Approved in https:/ /code.launchpad .net/~ltrager/ maas/+git/ maas/+merge/ 369863