From: garciadeblas Date: Thu, 4 Aug 2022 13:33:12 +0000 (+0200) Subject: Fix flake8 errors in vCD connector X-Git-Tag: v11.0.4^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F27%2F12427%2F3;p=osm%2FRO.git 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 0a220d6b..b0a6ed38 100644 --- a/RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py +++ b/RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py @@ -5458,18 +5458,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..96b80fdf --- /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. \ No newline at end of file