From: aguilard Date: Mon, 9 Oct 2023 14:05:53 +0000 (+0000) Subject: Fix bug 2290: Error in 'ResourceSkusOperations.list()' when instantiating on Azure. X-Git-Tag: release-v15.0-start~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F13939%2F2;p=osm%2FRO.git 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 --- 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.