From 4c3561bb2d650318607bc954cd3e21444d2dcc12 Mon Sep 17 00:00:00 2001 From: jolie Date: Mon, 28 Nov 2016 17:33:18 +0800 Subject: [PATCH] Correct deprecation of scale-in and scale-out cli Senlin is going to switch to openstackclient after Apr,2017. The corresponding command in openstackclient is cluster shrink and cluster expand not quite familiar with python-senlinclient. So it's better to correct deprecation in scale-in and scale-out commands to inform user with the going change. Change-Id: I29a277fa91a029a029512b1ff9f163fe51ed388b closes-bug:#1645249 --- senlinclient/v1/shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/senlinclient/v1/shell.py b/senlinclient/v1/shell.py index b28a036..67ed42c 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -944,7 +944,7 @@ def do_cluster_resize(service, args): help=_('Name or ID of cluster to operate on.')) def do_cluster_scale_out(service, args): """Scale out a cluster by the specified number of nodes.""" - show_deprecated('senlin cluster-scale-out', 'openstack cluster scale out') + show_deprecated('senlin cluster-scale-out', 'openstack cluster expand') resp = service.cluster_scale_out(args.id, args.count) print('Request accepted by action %s' % resp['action']) @@ -955,7 +955,7 @@ def do_cluster_scale_out(service, args): help=_('Name or ID of cluster to operate on.')) def do_cluster_scale_in(service, args): """Scale in a cluster by the specified number of nodes.""" - show_deprecated('senlin cluster-scale-in', 'openstack cluster scale in') + show_deprecated('senlin cluster-scale-in', 'openstack cluster shrink') resp = service.cluster_scale_in(args.id, args.count) print('Request accepted by action %s' % resp['action'])