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:
parent
d7f3139cf7
commit
f4769453fd
@ -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',
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user