diff --git a/senlinclient/v1/cluster.py b/senlinclient/v1/cluster.py index 841a567b..ed41b52f 100644 --- a/senlinclient/v1/cluster.py +++ b/senlinclient/v1/cluster.py @@ -188,7 +188,7 @@ class CreateCluster(command.ShowOne): '--profile', metavar='', required=True, - help=_('Profile Id used for this cluster') + help=_('Profile Id or name used for this cluster') ) parser.add_argument( 'name', diff --git a/senlinclient/v1/node.py b/senlinclient/v1/node.py index 18a9b934..34895eeb 100644 --- a/senlinclient/v1/node.py +++ b/senlinclient/v1/node.py @@ -233,8 +233,8 @@ class UpdateNode(command.ShowOne): ) parser.add_argument( '--profile', - metavar='', - help=_('ID of new profile to use') + metavar='', + help=_('ID or name of new profile to use') ) parser.add_argument( '--role', diff --git a/senlinclient/v1/shell.py b/senlinclient/v1/shell.py index 86b3535e..ed6c10e9 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -508,7 +508,7 @@ def _show_cluster(service, cluster_id): @utils.arg('-p', '--profile', metavar='', required=True, - help=_('Profile Id used for this cluster.')) + help=_('Profile Id or name used for this cluster.')) @utils.arg('-n', '--min-size', metavar='', default=0, help=_('Min size of the cluster. Default to 0.')) @utils.arg('-m', '--max-size', metavar='', default=-1, @@ -742,7 +742,7 @@ def do_cluster_run(service, args): @utils.arg('-p', '--profile', metavar='', - help=_('ID of new profile to use.')) + help=_('ID or name of new profile to use.')) @utils.arg('-t', '--timeout', metavar='', help=_('New timeout (in seconds) value for the cluster.')) @utils.arg('-M', '--metadata', metavar='', @@ -1160,7 +1160,7 @@ def _show_node(service, node_id, show_details=False): @utils.arg('-p', '--profile', metavar='', required=True, - help=_('Profile Id used for this node.')) + help=_('Profile Id or name used for this node.')) @utils.arg('-c', '--cluster', metavar='', help=_('Cluster Id for this node.')) @utils.arg('-r', '--role', metavar='', @@ -1218,7 +1218,7 @@ def do_node_delete(service, args): @utils.arg('-n', '--name', metavar='', help=_('New name for the node.')) @utils.arg('-p', '--profile', metavar='', - help=_('ID of new profile to use.')) + help=_('ID or name of new profile to use.')) @utils.arg('-r', '--role', metavar='', help=_('Role for this node in the specific cluster.')) @utils.arg('-M', '--metadata', metavar='',