On 2.0, api 1.0 version returns null
Bug #1557451 reported by
Michael Foord
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Jeffrey C Jones |
Bug Description
Juju will support MAAS 1.9 and 2.0, so we need to know the version of MAAS in use. However, in order to ask the MAAS API which version it is we already need to know the version...
On 2.0 /api/1.0/version returns null.
Ideally there would be a version independent endpoint we can call to get the MAAS version, so we don't have to make two calls.
Related branches
lp:~trapnine/maas/fix-1557451
- Blake Rouse (community): Approve
-
Diff: 82 lines (+41/-4)2 files modifiedsrc/maasserver/api/tests/test_api.py (+30/-1)
src/maasserver/urls.py (+11/-3)
Changed in maas: | |
importance: | Medium → High |
Changed in maas: | |
assignee: | nobody → Jeffrey C Jones (trapnine) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Also, on a 2.0 server 1.0 calls should probably error rather than returning null.