machine.list fails for some group_key values
Bug #1984994 reported by
Huw Wilkins
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Alexsander de Souza |
Bug Description
When providing group_key to a machine.list call it returns errors for some keys. I only tested a few, but got these errors:
power_state:
"tuple indices must be integers or slices, not str"
owner:
"Cannot resolve keyword 'name' into field. Choices are: consumers, date_joined, email ..."
According the API these are valid keys, as providing in incorrect key results in the error:
Cannot resolve keyword 'nothing' into field. Choices are: address_ttl, agent_name, architecture, bios_boot_method, bmc, bmc_id...
Related branches
~alexsander-souza/maas:lp1984994_fix_grouping
Merged
into
maas:master
- Adam Collard (community): Approve
- MAAS Lander: Approve
-
Diff: 120 lines (+81/-3)2 files modifiedsrc/maasserver/websockets/handlers/node.py (+2/-2)
src/maasserver/websockets/handlers/tests/test_machine.py (+79/-1)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Alexsander de Souza (alexsander-souza) |
milestone: | none → 3.3.0 |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.3.0 → 3.3.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.