From 1dcd83012be91a40bab1081d91261a9643b17e63 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Tue, 24 Jan 2017 11:31:07 +0100 Subject: [PATCH] ListExtResource given in place of ListExtManager This patch makes it use ListExtManager again. Change-Id: I00ef7107cdf027c747806c4e5037c05b60312e21 Closes-bug: #1658963 --- novaclient/v2/contrib/list_extensions.py | 2 +- ...iven-in-place-of-ListExtManager-a759a27079d16a44.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/fixed-ListExtResource-given-in-place-of-ListExtManager-a759a27079d16a44.yaml diff --git a/novaclient/v2/contrib/list_extensions.py b/novaclient/v2/contrib/list_extensions.py index 9177fa0cd..07f4e3d7f 100644 --- a/novaclient/v2/contrib/list_extensions.py +++ b/novaclient/v2/contrib/list_extensions.py @@ -18,6 +18,6 @@ from novaclient.v2 import list_extensions ListExtResource = list_extensions.ListExtResource -ListExtManager = list_extensions.ListExtResource +ListExtManager = list_extensions.ListExtManager contrib.warn() diff --git a/releasenotes/notes/fixed-ListExtResource-given-in-place-of-ListExtManager-a759a27079d16a44.yaml b/releasenotes/notes/fixed-ListExtResource-given-in-place-of-ListExtManager-a759a27079d16a44.yaml new file mode 100644 index 000000000..6491caecc --- /dev/null +++ b/releasenotes/notes/fixed-ListExtResource-given-in-place-of-ListExtManager-a759a27079d16a44.yaml @@ -0,0 +1,9 @@ +--- +fixes: + - | + The contents of the list_extensions.py file was moved from contrib to v2 + directory in release 7.0.0, and a stub importing the objects from the new + location was left in its place for backward compatibility, together with + a warning informing about the new location. However, the stub incorrectly + assigned the ListExtResource class to the ListExtManager name. This has + now been fixed, and ListExtManager is used instead.