RemoteFS: Fix messy string formatting

backing_file_template is split in an unintuitive way,
make this more cosmetically sensible.

Change-Id: I994640c68d8c84946afca780ad988a2eaa86723d
This commit is contained in:
Eric Harney 2023-03-09 10:10:13 -05:00
parent 4a1a39ecd7
commit 0027ecc0fc

View File

@ -887,8 +887,8 @@ class RemoteFSSnapDriverBase(RemoteFSDriver):
})
else:
backing_file_template = \
"(%(basedir)s/[0-9a-f]+/)?%" \
"(volname)s(.(tmp-snap-)?[0-9a-f-]+)?%(valid_ext)s$" % {
"(%(basedir)s/[0-9a-f]+/)?" \
"%(volname)s(.(tmp-snap-)?[0-9a-f-]+)?%(valid_ext)s$" % {
'basedir': basedir,
'volname': volume_name,
'valid_ext': valid_ext,