Fix bug 2290: Error in 'ResourceSkusOperations.list()' when instantiating on Azure. 39/13939/2
authoraguilard <e.dah.tid@telefonica.com>
Mon, 9 Oct 2023 14:05:53 +0000 (14:05 +0000)
committeraguilard <e.dah.tid@telefonica.com>
Tue, 10 Oct 2023 09:56:30 +0000 (09:56 +0000)
Added 'filter' parameter required by the 'resource_skus.list()' method.

Change-Id: I5f9350ccc1844c4b5a4d32ed7154494c92a4c928
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
RO-VIM-azure/osm_rovim_azure/vimconn_azure.py
releasenotes/notes/fix_bug_2290-0191de05fdfefda7.yaml [new file with mode: 0644]

index bf4a306..e964884 100755 (executable)
@@ -1140,7 +1140,7 @@ class vimconnector(vimconn.VimConnector):
             vm_sizes_list = [
                 vm_size.as_dict()
                 for vm_size in self.conn_compute.resource_skus.list(
-                    "location eq '{}'".format(self.region)
+                    filter="location eq '{}'".format(self.region)
                 )
             ]
 
@@ -1218,7 +1218,7 @@ class vimconnector(vimconn.VimConnector):
             vm_sizes_list = [
                 vm_size.as_dict()
                 for vm_size in self.conn_compute.resource_skus.list(
-                    "location eq '{}'".format(self.region)
+                    filter="location eq '{}'".format(self.region)
                 )
             ]
 
diff --git a/releasenotes/notes/fix_bug_2290-0191de05fdfefda7.yaml b/releasenotes/notes/fix_bug_2290-0191de05fdfefda7.yaml
new file mode 100644 (file)
index 0000000..8a15a0d
--- /dev/null
@@ -0,0 +1,22 @@
+#######################################################################################
+# Copyright ETSI Contributors and Others.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#######################################################################################
+---
+fixes:
+  - |
+    Fix bug 2290: Error in 'ResourceSkusOperations.list()' when instantiating on Azure.
+
+    Added 'filter' parameter required by the 'resource_skus.list()' method.