Merge "Deprecate nova-manage vm list command"
This commit is contained in:
commit
bae1d9cc21
|
@ -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).
|
||||
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -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.
|
Loading…
Reference in New Issue