]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix log formatting for rbd driver
authoriberezovskiy <iberezovskiy@mirantis.com>
Tue, 13 Oct 2015 11:31:35 +0000 (14:31 +0300)
committeriberezovskiy <iberezovskiy@mirantis.com>
Tue, 13 Oct 2015 11:32:34 +0000 (14:32 +0300)
Change-Id: Id2d7d18fa3b91fbbad9c771c9de006f21e43d2ea
Closes-bug: #1505633

cinder/volume/drivers/rbd.py

index b3be6e1cba84c1ca0ef07b0df4a3c887e3419d15..afbc1c07bf71fcef006a1ecdbb6db455948dc6ec 100644 (file)
@@ -857,8 +857,8 @@ class RBDDriver(driver.TransferVD, driver.ExtendVD,
         if image_meta['disk_format'] != 'raw':
             LOG.debug("rbd image clone requires image format to be "
                       "'raw' but image %(image)s is '%(format)s'",
-                      {"image", image_location,
-                       "format", image_meta['disk_format']})
+                      {"image": image_location,
+                       "format": image_meta['disk_format']})
             return False
 
         # check that we can read the image