launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #12618
[Merge] lp:~jameinel/maas/tag-name-api into lp:maas
John A Meinel has proposed merging lp:~jameinel/maas/tag-name-api into lp:maas.
Commit message:
Change the 'resource_uri' from 'tags/tag_name' to 'tags/name' because it makes the CLI's URI formatter happy.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~jameinel/maas/tag-name-api/+merge/126897
--
https://code.launchpad.net/~jameinel/maas/tag-name-api/+merge/126897
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~jameinel/maas/tag-name-api into lp:maas.
=== modified file 'src/maasserver/api.py'
--- src/maasserver/api.py 2012-09-27 09:24:41 +0000
+++ src/maasserver/api.py 2012-09-28 09:47:33 +0000
@@ -1325,7 +1325,7 @@
@classmethod
def resource_uri(cls, tag=None):
# See the comment in NodeHandler.resource_uri
- tag_name = 'tag_name'
+ tag_name = 'name'
if tag is not None:
tag_name = tag.name
return ('tag_handler', (tag_name, ))