apiclient.maas_client.MAASClient.post() always sets an op in the query string

Bug #1610414 reported by Felipe Reyes on 2016-08-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
High
Felipe Reyes
2.0
High
Felipe Reyes

Bug Description

When trying to do POST operations using MAASClient the op argument is always set in the query string, so calls like this:

client.post('/devices/', as_json=True,
             hostname='foo',
             mac_addresses=['00:16:aa:bb:cc:dd'],
             parent='xxxx')

End up producing the url http://.../MAAS/api/2.0/devices/?op=update and MAAS api server replies with a Error 400

Tags: sts Edit Tag help

Related branches

Felipe Reyes (freyes) on 2016-08-05
Changed in maas:
assignee: nobody → Felipe Reyes (freyes)
Gavin Panella (allenap) on 2016-08-08
Changed in maas:
status: New → In Progress
Changed in maas:
milestone: none → 2.1.0
status: In Progress → Fix Committed
importance: Undecided → High
Changed in maas:
milestone: 2.0.1 → none
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers