Merge "Deprecate "baremetal show capabilities" command"

This commit is contained in:
Jenkins 2016-04-04 12:16:30 +00:00 committed by Gerrit Code Review
commit 5173959248
1 changed files with 3 additions and 0 deletions

View File

@ -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():