profile's name also can be use in some commands
When create profile, we use profile name only. When we update cluster and node, we can use both profile id or name. Change-Id: I45c5556667cc2b9c49aac27ab8def6cbf9e3f6d0
This commit is contained in:
parent
b93c882d82
commit
c94ab235d2
@ -188,7 +188,7 @@ class CreateCluster(command.ShowOne):
|
||||
'--profile',
|
||||
metavar='<profile>',
|
||||
required=True,
|
||||
help=_('Profile Id used for this cluster')
|
||||
help=_('Profile Id or name used for this cluster')
|
||||
)
|
||||
parser.add_argument(
|
||||
'name',
|
||||
|
@ -233,8 +233,8 @@ class UpdateNode(command.ShowOne):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--profile',
|
||||
metavar='<profile-id>',
|
||||
help=_('ID of new profile to use')
|
||||
metavar='<profile>',
|
||||
help=_('ID or name of new profile to use')
|
||||
)
|
||||
parser.add_argument(
|
||||
'--role',
|
||||
|
@ -508,7 +508,7 @@ def _show_cluster(service, cluster_id):
|
||||
|
||||
|
||||
@utils.arg('-p', '--profile', metavar='<PROFILE>', required=True,
|
||||
help=_('Profile Id used for this cluster.'))
|
||||
help=_('Profile Id or name used for this cluster.'))
|
||||
@utils.arg('-n', '--min-size', metavar='<MIN-SIZE>', default=0,
|
||||
help=_('Min size of the cluster. Default to 0.'))
|
||||
@utils.arg('-m', '--max-size', metavar='<MAX-SIZE>', default=-1,
|
||||
@ -742,7 +742,7 @@ def do_cluster_run(service, args):
|
||||
|
||||
|
||||
@utils.arg('-p', '--profile', metavar='<PROFILE>',
|
||||
help=_('ID of new profile to use.'))
|
||||
help=_('ID or name of new profile to use.'))
|
||||
@utils.arg('-t', '--timeout', metavar='<TIMEOUT>',
|
||||
help=_('New timeout (in seconds) value for the cluster.'))
|
||||
@utils.arg('-M', '--metadata', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@ -1160,7 +1160,7 @@ def _show_node(service, node_id, show_details=False):
|
||||
|
||||
|
||||
@utils.arg('-p', '--profile', metavar='<PROFILE>', required=True,
|
||||
help=_('Profile Id used for this node.'))
|
||||
help=_('Profile Id or name used for this node.'))
|
||||
@utils.arg('-c', '--cluster', metavar='<CLUSTER>',
|
||||
help=_('Cluster Id for this node.'))
|
||||
@utils.arg('-r', '--role', metavar='<ROLE>',
|
||||
@ -1218,7 +1218,7 @@ def do_node_delete(service, args):
|
||||
@utils.arg('-n', '--name', metavar='<NAME>',
|
||||
help=_('New name for the node.'))
|
||||
@utils.arg('-p', '--profile', metavar='<PROFILE ID>',
|
||||
help=_('ID of new profile to use.'))
|
||||
help=_('ID or name of new profile to use.'))
|
||||
@utils.arg('-r', '--role', metavar='<ROLE>',
|
||||
help=_('Role for this node in the specific cluster.'))
|
||||
@utils.arg('-M', '--metadata', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
|
Loading…
x
Reference in New Issue
Block a user