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

The CLI was stating that the name of the project should be used, but the
parameter needs to be the project_id.

Change-Id: If0908a1b72c526f6436432ff18599423f89f7d1f
This commit is contained in:
Alvaro Lopez Garcia 2012-07-19 09:47:40 +02:00
parent d7f3139cf7
commit f4769453fd
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)