API: node-interface link-subnet mode parameter is case sensitive

Bug #1495775 reported by Mike Pontillo
6
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-4b50-11e5-a0d9-00163eb185eb 17 mode=DHCP
{"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-4b50-11e5-a0d9-00163eb185eb 17 mode=DHCP
Success.
Machine-readable output follows:
...

Related branches

Revision history for this message
Mike Pontillo (mpontillo) wrote :

We should fix this soon, because from the help text, one would assume that you must supply the parameters in ALL_CAPS.

Changed in maas:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Blake Rouse (blake-rouse) wrote :

Ah I wrote the test to make sure it worked as lower case, I forgot to test upper case.

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.