Correct format string in error message

Due to a syntax error, values are not being interpolated into a
message format string.  This patch corrects the error.

Closes-Bug: #1906605
Change-Id: I5b3f0d6a637534b40cd8e3fa468a86a94605d879
This commit is contained in:
zhaoyixin 2020-12-03 17:33:30 +08:00
parent 075ab6c85f
commit 203eb2cf84
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ class SwiftBackupDriver(chunkeddriver.ChunkedBackupDriver):
if etag != md5:
err = _('error writing object to swift, MD5 of object in '
'swift %(etag)s is not the same as MD5 of object sent '
'to swift %(md5)s'), {'etag': etag, 'md5': md5}
'to swift %(md5)s') % {'etag': etag, 'md5': md5}
raise exception.InvalidBackup(reason=err)
return md5