From d3457ac7994d93ff7ce87c4a71bf105d9c7ee297 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Wed, 30 Mar 2016 14:18:25 +0200 Subject: [PATCH] Deprecate "baremetal show capabilities" command This command was introduced to display node profiles. This job is now better done by the "overcloud profiles list" command. As a result, this command is not covered by our documentation at all. Also, Ironic will have its own API and commands for handling capabilities reasonably soon, so we risk clashing with them. Change-Id: I423a03801280b9f9614214a7b8a615e8056b9b25 --- tripleoclient/v1/baremetal.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tripleoclient/v1/baremetal.py b/tripleoclient/v1/baremetal.py index b025ab44a..17b5ce1ec 100644 --- a/tripleoclient/v1/baremetal.py +++ b/tripleoclient/v1/baremetal.py @@ -528,6 +528,9 @@ class ShowNodeCapabilities(lister.Lister): log = logging.getLogger(__name__ + ".ShowNodeProfile") def take_action(self, parsed_args): + self.log.warning('This command is deprecated and will be removed soon ' + 'please use "openstack overcloud profiles list" to ' + 'get the list of all nodes and their profiles') bm_client = self.app.client_manager.baremetal rows = [] for node in bm_client.node.list():