From a464d48e5e517ac8e4d04ca72b25042067abcb31 Mon Sep 17 00:00:00 2001 From: jamepark4 Date: Fri, 13 Dec 2024 09:45:55 -0500 Subject: [PATCH] Update string format to address PEP8 E231 Currently PEP8 is evaluating an E231 formmating error based the string generation we are doing for checking encrypted volume paths. Convert from f-strings to %s operator to avoid this formatting error. Change-Id: I54d2c8817fd70bb10a48e8d3d71a8ce1440c7d6b --- whitebox_tempest_plugin/api/compute/test_volume_encryption.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whitebox_tempest_plugin/api/compute/test_volume_encryption.py b/whitebox_tempest_plugin/api/compute/test_volume_encryption.py index f6aad8c6..006d7219 100644 --- a/whitebox_tempest_plugin/api/compute/test_volume_encryption.py +++ b/whitebox_tempest_plugin/api/compute/test_volume_encryption.py @@ -98,9 +98,9 @@ class TestQEMUVolumeEncryption(base.BaseWhiteboxComputeTest): volume = encrypted_disk_xml_element.find('./source').get('name') user = encrypted_disk_xml_element.find('./auth').get('username') if user: - path = f"rbd:{volume}:id={user}" + path = "rbd:%s:id=%s" % (volume, user) else: - path = f"rbd:{volume}" + path = "rbd:%s" % volume else: path = encrypted_disk_xml_element.find('./source').get('dev')