Fix tiny format string nit in log message.

Fixes bug 996157

To avoid "ValueError: unsupported format character ':' ..."

Change-Id: I8666b3441ccbea884dcd7ad54f019a0681b717b4
This commit is contained in:
Eoghan Glynn 2012-05-11 16:17:16 +01:00
parent a857842368
commit 7553b4fcb6

View File

@ -915,7 +915,7 @@ class ImageSerializer(wsgi.JSONResponseSerializer):
bytes_written += len(chunk)
except Exception, err:
msg = _("An error occurred reading from backend storage "
"for image %(image_id): %(err)s") % locals()
"for image %(image_id)s: %(err)s") % locals()
logger.error(msg)
raise