diff options
author | Tao Li <litao3721@126.com> | 2018-09-14 11:09:38 +0800 |
---|---|---|
committer | Tao Li <litao3721@126.com> | 2018-10-25 00:54:05 +0000 |
commit | 910201f20157c57e8b24d1f0e82763250f6df0d7 (patch) | |
tree | de2cef8bdfc058f00630342f1b7f96b38671d47c | |
parent | 8128ebbdd9dd6312fb09fd2b65cf3aee0bca9921 (diff) | |
download | python-novaclient-910201f20157c57e8b24d1f0e82763250f6df0d7.tar.gz |
Deprecate the unused instance-name
The '--instnace-name' option exists in nova CLI for a long time,
but it is not used, so we deprecate it firstly and will remove it in
T release.
Change-Id: I0c3d611fc322ae2c9f28ce3845b1c08eaab69485
Closes-Bug: #1788182
-rw-r--r-- | novaclient/v2/shell.py | 4 | ||||
-rw-r--r-- | releasenotes/notes/deprecate-instance-name-option-bc76629d28f1d456.yaml | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py index 0bf6da8e..f221a31e 100644 --- a/novaclient/v2/shell.py +++ b/novaclient/v2/shell.py @@ -1379,7 +1379,9 @@ def _print_flavor(flavor): dest='instance_name', metavar='<name-regexp>', default=None, - help=_('Search with regular expression match by server name.')) + action=shell.DeprecatedAction, + help=_('Search with regular expression match by server name. The option ' + 'is not used and will be removed in T release.')) @utils.arg( '--status', dest='status', diff --git a/releasenotes/notes/deprecate-instance-name-option-bc76629d28f1d456.yaml b/releasenotes/notes/deprecate-instance-name-option-bc76629d28f1d456.yaml new file mode 100644 index 00000000..270d8dcf --- /dev/null +++ b/releasenotes/notes/deprecate-instance-name-option-bc76629d28f1d456.yaml @@ -0,0 +1,7 @@ +--- +deprecations: + - | + The ``--instance-name`` option has been deprecated from the ``nova list`` + command because the instance name query parameter is ignored by the + compute REST API. + |