From 525fad649a2bed158fb460c690ed4d82284d5355 Mon Sep 17 00:00:00 2001 From: Mukul Patel Date: Sun, 26 May 2013 23:42:06 +0530 Subject: [PATCH] Added '%' before snapshot variable In function create_snapshot for cinder volume, '%' was missed before variable snapshot from message defination. It was causing an error during translation of debug message. Included '%' for getting proper debug log. Fixes: bug #1183736 Change-Id: I894639a4e5a69be80f4f53ec9d4f9f8648870173 --- cinder/volume/drivers/emc/emc_smis_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/drivers/emc/emc_smis_common.py b/cinder/volume/drivers/emc/emc_smis_common.py index 31f094bfe..9f686bca3 100644 --- a/cinder/volume/drivers/emc/emc_smis_common.py +++ b/cinder/volume/drivers/emc/emc_smis_common.py @@ -522,7 +522,7 @@ class EMCSMISCommon(): if rc != 0L: rc, errordesc = self._wait_for_job_complete(job) if rc != 0L: - exception_message = (_('Error Create Snapshot: (snapshot)s ' + exception_message = (_('Error Create Snapshot: %(snapshot)s ' 'Volume: %(volume)s Error: %(errordesc)s') % {'snapshot': snapshotname, 'volume': volumename, 'errordesc': errordesc}) -- 2.45.2