Merge "Change "project" to "project_id" in cloudpipe-create"

This commit is contained in:
Jenkins 2013-11-14 09:22:59 +00:00 committed by Gerrit Code Review
commit c51dc4a525
2 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class CloudpipeManager(base.ManagerWithFind):
"""
Launch a cloudpipe instance.
:param project: name of the project for the cloudpipe
:param project: UUID of the project (tenant) for the cloudpipe
"""
body = {'cloudpipe': {'project_id': project}}
return self._create('/os-cloudpipe', body, 'instance_id',

View File

@ -457,7 +457,8 @@ def do_cloudpipe_list(cs, _args):
utils.print_list(cloudpipes, columns)
@utils.arg('project', metavar='<project>', help='Name of the project.')
@utils.arg('project', metavar='<project_id>',
help='UUID of the project to create the cloudpipe for.')
def do_cloudpipe_create(cs, args):
"""Create a cloudpipe instance for the given project."""
cs.cloudpipe.create(args.project)