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

Bug #1610414 reported by Felipe Reyes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Felipe Reyes
2.0
Fix Released
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

Related branches

Felipe Reyes (freyes)
Changed in maas:
assignee: nobody → Felipe Reyes (freyes)
Gavin Panella (allenap)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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