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
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user