From 545cb15ed0ca105b04b18534cb67e9593171005e Mon Sep 17 00:00:00 2001 From: Tom Hancock <tom.hancock@hp.com> Date: Tue, 23 Apr 2013 11:32:06 +0000 Subject: [PATCH] scrubber: dont print URI of image to be deleted Print the ID not the URI of the image to to be scrubbed as the URI can contain credentials fixes bug lp# 1171851 Change-Id: Ice2d3d25a23bae31380759b87b50228ba358dcf1 --- glance/store/scrubber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glance/store/scrubber.py b/glance/store/scrubber.py index 066bdd9260..97e505f1a4 100644 --- a/glance/store/scrubber.py +++ b/glance/store/scrubber.py @@ -136,7 +136,7 @@ class Scrubber(object): if CONF.metadata_encryption_key is not None: uri = crypt.urlsafe_decrypt(CONF.metadata_encryption_key, uri) try: - LOG.debug(_("Deleting %(uri)s") % {'uri': uri}) + LOG.debug(_("Deleting %(id)s") % {'id': id}) # Here we create a request context with credentials to support # delayed delete when using multi-tenant backend storage ctx = context.RequestContext(auth_tok=self.registry.auth_tok,