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
This commit is contained in:
jamepark4 2024-12-13 09:45:55 -05:00
parent bee34dbb86
commit a464d48e5e

View File

@ -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')