From: garciadeblas Date: Thu, 4 Aug 2022 13:33:12 +0000 (+0200) Subject: Fix flake8 errors in vCD connector X-Git-Tag: v12.0.1^0 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=commitdiff_plain;h=ae7d1188b352ababd4d1d33c78f016c302a4d6e4;hp=973bed275178290bf65efa77e080e11667bb5457 Fix flake8 errors in vCD connector Change-Id: I51224b8103df1013d34f1f6daf886e59a8a94cc2 Signed-off-by: garciadeblas --- diff --git a/RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py b/RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py index e06b2f91..a9bd0ff0 100644 --- a/RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py +++ b/RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py @@ -5450,18 +5450,18 @@ class vimconnector(vimconn.VimConnector): return None if add_vdc_rest_url is not None and provider_vdc_ref is not None: - data = """ {1:s} - ReservationPool - MHz20482048 - MB20482048 - 0100 - trueMB20480true - - true""".format( - escape(vdc_name), escape(vdc_name), provider_vdc_ref - ) + data = ( + ' ' + "{1:s}" + "ReservationPool" + "MHz20482048" + "MB20482048" + "0100" + "trueMB20480" + "true" + '' + "true" + ).format(escape(vdc_name), escape(vdc_name), provider_vdc_ref) headers[ "Content-Type" ] = "application/vnd.vmware.admin.createVdcParams+xml" diff --git a/releasenotes/notes/fix_flake8_errors_vcd_connector-439b3773f861015e.yaml b/releasenotes/notes/fix_flake8_errors_vcd_connector-439b3773f861015e.yaml new file mode 100644 index 00000000..20888aa4 --- /dev/null +++ b/releasenotes/notes/fix_flake8_errors_vcd_connector-439b3773f861015e.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: + - | + This change fixes flake8 errors in vCD connector files, hidden in previous + execution of flake8 tests.