Merge lp:~jtv/maas/bug-1041158 into lp:maas/trunk
Proposed by
Jeroen T. Vermeulen
on 2012-08-24
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Jeroen T. Vermeulen on 2012-08-24 | ||||
| Approved revision: | 924 | ||||
| Merged at revision: | 927 | ||||
| Proposed branch: | lp:~jtv/maas/bug-1041158 | ||||
| Merge into: | lp:maas/trunk | ||||
| Diff against target: |
91 lines (+19/-14) 3 files modified
src/maasserver/tests/test_api.py (+18/-0) src/provisioningserver/dhcp/leases.py (+1/-1) src/provisioningserver/dhcp/tests/test_leases.py (+0/-13) |
||||
| To merge this branch: | bzr merge lp:~jtv/maas/bug-1041158 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gavin Panella (community) | 2012-08-24 | Approve on 2012-08-24 | |
|
Review via email:
|
|||
Commit Message
Fix broken API URL path in worker.
Description of the Change
When the scheduled job for DHCP updates came to the worker, the worker tried but failed to upload its dhcp leases to the MAAS server. Gavin figured out what was wrong. It construed the wrong URL to post for, without the /api/<version> prefix.
This branch fixes that. I added an API test to ensure that it really gets the right path now. And I discovered that there was a similar test in the provisioning-server code, but since it didn't have access to django's reverse>(), it was built on the same wrong idea of the API path. So I deleted that test in favour of the new one.
Jeroen
To post a comment you must log in.
review:
Approve

