API: node-interface link-subnet mode parameter is case sensitive
Bug #1495775 reported by
Mike Pontillo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse |
Bug Description
Observed:
$ maas admin node-interface link-subnet node-d57abc48-
{"mode": ["'DHCP' is not a valid mode. It should be one of: 'auto', 'dhcp', 'static', 'link_up'."]
Expected:
$ maas admin node-interface link-subnet node-d57abc48-
Success.
Machine-readable output follows:
...
Related branches
lp:~blake-rouse/maas/fix-1495775
- Andres Rodriguez (community): Approve
-
Diff: 281 lines (+110/-11)11 files modifiedsrc/maasserver/fields.py (+10/-0)
src/maasserver/forms_interface_link.py (+2/-1)
src/maasserver/models/interface.py (+37/-3)
src/maasserver/models/signals/dhcp.py (+1/-1)
src/maasserver/models/signals/dns.py (+1/-1)
src/maasserver/models/signals/events.py (+1/-1)
src/maasserver/models/signals/monitors.py (+1/-1)
src/maasserver/models/signals/power.py (+1/-1)
src/maasserver/models/tests/test_interface.py (+54/-0)
src/maasserver/tests/test_forms_interface_link.py (+1/-1)
src/maasserver/utils/tests/test_signals.py (+1/-1)
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Blake Rouse (blake-rouse) |
milestone: | none → 1.9.0 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
We should fix this soon, because from the help text, one would assume that you must supply the parameters in ALL_CAPS.