Add deprecation of cluster-run cli

Change-Id: I337349192292894204282abaa82e68cb159ede97
This commit is contained in:
chohoor
2017-01-19 17:17:29 +08:00
parent 8ab7f39c59
commit ca3e3285d1

View File

@@ -710,6 +710,8 @@ def _run_script(node_id, addr, net, addr_type, port, user, ipv6, identity_file,
help=_('Name or ID of the cluster.'))
def do_cluster_run(service, args):
"""Run shell scripts on all nodes of a cluster."""
show_deprecated('senlin cluster-run', 'openstack cluster run')
if '@' in args.id:
user, cluster = args.id.split('@', 1)
args.user = user