Use 'project' instead of 'tenant'

While switching to openstackclient  we use project instead
of tenant.

Change-Id: I1d6b80a88d3067809e2a9723ece4fbdf16042d73
This commit is contained in:
kavithahr 2017-06-30 12:37:35 +05:30 committed by kavitha h r
parent 48e68c1c3a
commit 2297d62415
7 changed files with 14 additions and 13 deletions

View File

@ -107,7 +107,7 @@ class CreateClusterTemplate(command.ShowOne):
action='store_true',
default=False,
help='Make the cluster template public (Visible from other '
'tenants)',
'projects)',
)
parser.add_argument(
'--protected',
@ -391,7 +391,7 @@ class UpdateClusterTemplate(command.ShowOne):
'--public',
action='store_true',
help='Make the cluster template public '
'(Visible from other tenants)',
'(Visible from other projects)',
dest='is_public'
)
public.add_argument(

View File

@ -111,7 +111,7 @@ class CreateCluster(command.ShowOne):
'--public',
action='store_true',
default=False,
help='Make the cluster public (Visible from other tenants)',
help='Make the cluster public (Visible from other projects)',
)
parser.add_argument(
'--protected',
@ -451,7 +451,7 @@ class UpdateCluster(command.ShowOne):
'--public',
action='store_true',
help='Make the cluster public '
'(Visible from other tenants)',
'(Visible from other projects)',
dest='is_public'
)
public.add_argument(

View File

@ -250,7 +250,7 @@ class UpdateDataSource(command.ShowOne):
'--public',
action='store_true',
dest='is_public',
help='Make the data source public (Visible from other tenants)',
help='Make the data source public (Visible from other projects)',
)
public.add_argument(
'--private',

View File

@ -311,13 +311,14 @@ class UpdateJobBinary(command.ShowOne):
public.add_argument(
'--public',
action='store_true',
help='Make the job binary public (Visible from other tenants)',
help='Make the job binary public (Visible from other projects)',
dest='is_public'
)
public.add_argument(
'--private',
action='store_false',
help='Make the job binary private (Visible only from this tenant)',
help='Make the job binary private (Visible only from'
' this project)',
dest='is_public'
)
protected = parser.add_mutually_exclusive_group()

View File

@ -278,7 +278,7 @@ class UpdateJobTemplate(command.ShowOne):
'--public',
action='store_true',
help='Make the job template public '
'(Visible from other tenants)',
'(Visible from other projects)',
dest='is_public'
)
public.add_argument(

View File

@ -340,13 +340,13 @@ class UpdateJob(command.ShowOne):
public.add_argument(
'--public',
action='store_true',
help='Make the job public (Visible from other tenants)',
help='Make the job public (Visible from other projects)',
dest='is_public'
)
public.add_argument(
'--private',
action='store_false',
help='Make the job private (Visible only from this tenant)',
help='Make the job private (Visible only from this project)',
dest='is_public'
)
protected = parser.add_mutually_exclusive_group()

View File

@ -171,7 +171,7 @@ class CreateNodeGroupTemplate(command.ShowOne):
action='store_true',
default=False,
help='Make the node group template public (Visible from other '
'tenants)',
'projects)',
)
parser.add_argument(
'--protected',
@ -569,14 +569,14 @@ class UpdateNodeGroupTemplate(command.ShowOne):
'--public',
action='store_true',
help='Make the node group template public '
'(Visible from other tenants)',
'(Visible from other projects)',
dest='is_public'
)
public.add_argument(
'--private',
action='store_false',
help='Make the node group template private '
'(Visible only from this tenant)',
'(Visible only from this project)',
dest='is_public'
)
protected = parser.add_mutually_exclusive_group()