Merge lp:~rvb/maas/bug-1154142 into lp:~maas-committers/maas/trunk
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1455 |
Proposed branch: | lp:~rvb/maas/bug-1154142 |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
43 lines (+15/-0) 2 files modified
src/maasserver/api.py (+3/-0) src/maasserver/tests/test_api.py (+12/-0) |
To merge this branch: | bzr merge lp:~rvb/maas/bug-1154142 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Jeroen T. Vermeulen (community) | Approve | ||
Review via email: mp+152943@code.launchpad.net |
Commit message
Add 'resource_uri' when returning the JSONized value of a file.
Description of the change
We're generating the JSON representation of a file manually (because we're base64-encoding its content), we also need to populate the value of 'resource_uri' manually. The Go provider relies on that.
To post a comment you must log in.
Thanks for the testing, and the fix! The "Add the resource_uri" comment is probably a bit overkill — this is python and it's pretty clear what you're doing.