From 7553b4fcb69580c9cbed8c8944e2b5d70fe99048 Mon Sep 17 00:00:00 2001 From: Eoghan Glynn Date: Fri, 11 May 2012 16:17:16 +0100 Subject: [PATCH] Fix tiny format string nit in log message. Fixes bug 996157 To avoid "ValueError: unsupported format character ':' ..." Change-Id: I8666b3441ccbea884dcd7ad54f019a0681b717b4 --- glance/api/v1/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glance/api/v1/images.py b/glance/api/v1/images.py index 0312e5ce8f..dad9af4aad 100644 --- a/glance/api/v1/images.py +++ b/glance/api/v1/images.py @@ -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