]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Added '%' before snapshot variable
authorMukul Patel <mukul18@gmail.com>
Sun, 26 May 2013 18:12:06 +0000 (23:42 +0530)
committerMukul Patel <mukul18@gmail.com>
Sun, 26 May 2013 18:32:50 +0000 (00:02 +0530)
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

index 31f094bfe07baca380659eccda2132a6aebb7c95..9f686bca3f5757e2d191f65c4de0489d79be0c61 100644 (file)
@@ -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})