machine.list fails for some group_key values

Bug #1984994 reported by Huw Wilkins
6
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

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.
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.