From be136d9d89f7cd589fe5f42fe1bfe08cd5ce476f Mon Sep 17 00:00:00 2001 From: aguilard Date: Mon, 9 Oct 2023 14:05:53 +0000 Subject: [PATCH] Fix bug 2290: Error in 'ResourceSkusOperations.list()' when instantiating on Azure. Added 'filter' parameter required by the 'resource_skus.list()' method. Change-Id: I5f9350ccc1844c4b5a4d32ed7154494c92a4c928 Signed-off-by: aguilard (cherry picked from commit b1aa422c943886f6b2e86e9fd575913c2d89dc63) --- RO-VIM-azure/osm_rovim_azure/vimconn_azure.py | 4 ++-- .../notes/fix_bug_2290-0191de05fdfefda7.yaml | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/fix_bug_2290-0191de05fdfefda7.yaml diff --git a/RO-VIM-azure/osm_rovim_azure/vimconn_azure.py b/RO-VIM-azure/osm_rovim_azure/vimconn_azure.py index bf4a3060..e9648849 100755 --- a/RO-VIM-azure/osm_rovim_azure/vimconn_azure.py +++ b/RO-VIM-azure/osm_rovim_azure/vimconn_azure.py @@ -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 index 00000000..8a15a0dc --- /dev/null +++ b/releasenotes/notes/fix_bug_2290-0191de05fdfefda7.yaml @@ -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. -- 2.25.1