Merge lp:~jameinel/maas/tag-name-api into lp:~maas-committers/maas/trunk

Proposed by John A Meinel
Status: Merged
Approved by: Martin Packman
Approved revision: no longer in the source branch.
Merged at revision: 1099
Proposed branch: lp:~jameinel/maas/tag-name-api
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 12 lines (+1/-1)
1 file modified
src/maasserver/api.py (+1/-1)
To merge this branch: bzr merge lp:~jameinel/maas/tag-name-api
Reviewer Review Type Date Requested Status
Martin Packman (community) Approve
Review via email: mp+126897@code.launchpad.net

Commit message

Change the 'resource_uri' from 'tags/tag_name' to 'tags/name' because it makes the CLI's URI formatter happy.

To post a comment you must log in.
Revision history for this message
Martin Packman (gz) wrote :

Yeay!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/maasserver/api.py'
2--- src/maasserver/api.py 2012-09-27 09:24:41 +0000
3+++ src/maasserver/api.py 2012-09-28 09:47:33 +0000
4@@ -1325,7 +1325,7 @@
5 @classmethod
6 def resource_uri(cls, tag=None):
7 # See the comment in NodeHandler.resource_uri
8- tag_name = 'tag_name'
9+ tag_name = 'name'
10 if tag is not None:
11 tag_name = tag.name
12 return ('tag_handler', (tag_name, ))