From: preethika.p Date: Thu, 20 Jan 2022 07:24:18 +0000 (+0000) Subject: Fix bug 1867 - Use existing flavors with true X-Git-Tag: v10.1.0-rc1~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F11569%2F3;p=osm%2FRO.git Fix bug 1867 - Use existing flavors with true Change-Id: I0025b2be85c4153f1812ebbb9108ea14b92770c8 Signed-off-by: preethika.p (cherry picked from commit ebaba1f2fc89f24327e576f3a9235a94c8fade30) --- diff --git a/RO-VIM-openstack/osm_rovim_openstack/vimconn_openstack.py b/RO-VIM-openstack/osm_rovim_openstack/vimconn_openstack.py index dcbf5cad..1083e391 100644 --- a/RO-VIM-openstack/osm_rovim_openstack/vimconn_openstack.py +++ b/RO-VIM-openstack/osm_rovim_openstack/vimconn_openstack.py @@ -1200,7 +1200,7 @@ class vimconnector(vimconn.VimConnector): flavor.vcpus, flavor.disk, flavor.ephemeral, - flavor.swap, + flavor.swap if isinstance(flavor.swap, int) else 0, ) if flavor_data == flavor_target: return flavor.id diff --git a/releasenotes/notes/fix_bug_1867-7a437465b9de067c.yaml b/releasenotes/notes/fix_bug_1867-7a437465b9de067c.yaml new file mode 100644 index 00000000..3b4e2522 --- /dev/null +++ b/releasenotes/notes/fix_bug_1867-7a437465b9de067c.yaml @@ -0,0 +1,21 @@ +####################################################################################### +# 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: + - | + Fixing bug 1867 - this fixes the usage of use existing flavors with true + in vim account for NS deployment with exact matching flavors. \ No newline at end of file