Merge "Deprecate nova-manage vm list command"

This commit is contained in:
Jenkins 2016-07-11 15:23:46 +00:00 committed by Gerrit Code Review
commit bae1d9cc21
3 changed files with 13 additions and 1 deletions

View File

@ -180,6 +180,9 @@ Nova Images
Nova VM
~~~~~~~~~~~
**DEPRECATED** Use the nova list command from python-novaclient instead.
The vm subcommand will be removed in the 15.0.0 Ocata release.
``nova-manage vm list [host]``
Show a list of all instances. Accepts optional hostname (to show only instances on specific host).

View File

@ -686,9 +686,13 @@ class NetworkCommands(object):
class VmCommands(object):
"""Class for managing VM instances."""
description = ('DEPRECATED: Use the nova list command from '
'python-novaclient instead. The vm subcommand will be '
'removed in the 15.0.0 Ocata release.')
@args('--host', metavar='<host>', help='Host')
def list(self, host=None):
"""Show a list of all instances."""
"""DEPRECATED: Show a list of all instances."""
print(("%-10s %-15s %-10s %-10s %-26s %-9s %-9s %-9s"
" %-10s %-10s %-10s %-5s" % (_('instance'),

View File

@ -0,0 +1,5 @@
---
deprecations:
- The ``nova-manage vm list`` command is deprecated and will be removed in
the 15.0.0 Ocata release. Use the ``nova list`` command from
python-novaclient instead.