From 910201f20157c57e8b24d1f0e82763250f6df0d7 Mon Sep 17 00:00:00 2001 From: Tao Li Date: Fri, 14 Sep 2018 11:09:38 +0800 Subject: [PATCH] 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 --- novaclient/v2/shell.py | 4 +++- .../deprecate-instance-name-option-bc76629d28f1d456.yaml | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/deprecate-instance-name-option-bc76629d28f1d456.yaml diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py index 0bf6da8ee..f221a31e2 100644 --- a/novaclient/v2/shell.py +++ b/novaclient/v2/shell.py @@ -1379,7 +1379,9 @@ def _print_flavor(flavor): dest='instance_name', metavar='', 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 000000000..270d8dcfe --- /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. +