]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix broken format string in vol mgr log
authorEric Harney <eharney@redhat.com>
Mon, 5 Oct 2015 16:55:52 +0000 (12:55 -0400)
committerEric Harney <eharney@redhat.com>
Mon, 5 Oct 2015 16:55:52 +0000 (12:55 -0400)
"Detected volume stuck in" message is
not formatted correctly.

Change-Id: Ia2b3797508d8bcbc00f2c85d1d9f8172d923a062

cinder/volume/manager.py

index 7dc47d9a394234fd7854cdebdf3e9a96da0e0501..65f2e9a3fa9c3080d909069c8f17d4f06ff4be2f 100644 (file)
@@ -403,7 +403,7 @@ class VolumeManager(manager.SchedulerDependentManager):
                                               {'status': 'error'})
                 elif volume['status'] in ('downloading', 'creating'):
                     LOG.warning(_LW("Detected volume stuck "
-                                    "in %s(curr_status)s "
+                                    "in %(curr_status)s "
                                     "status, setting to ERROR."),
                                 {'curr_status': volume['status']},
                                 resource=volume)