]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix syntax error in cinder-volume-usage-audit
authorOllie Leahy <oliver.leahy@hp.com>
Tue, 19 Feb 2013 17:54:59 +0000 (17:54 +0000)
committerOllie Leahy <oliver.leahy@hp.com>
Tue, 19 Feb 2013 17:58:35 +0000 (17:58 +0000)
There was a syntax error in a print statement in cinder-volume-usage-audit
which caused the script to crash.

Fixes LP bug #1130266

Change-Id: If4b0102ec5218fc8347f97041ac65f633111c26f

bin/cinder-volume-usage-audit

index 89bd3c519512131d4213e9324a18e940c12ff92d..96660839ea1b092adae6a1dd0bde62afd99838b4 100755 (executable)
@@ -65,7 +65,7 @@ if __name__ == '__main__':
     logging.setup("cinder")
     begin, end = utils.last_completed_audit_period()
     print _("Starting volume usage audit")
-    msg = _("Creating usages for %(begin_period) until %(end_period)")
+    msg = _("Creating usages for %(begin_period)s until %(end_period)s")
     print (msg % {"begin_period": str(begin), "end_period": str(end)})
     volumes = db.volume_get_active_by_window(admin_context,
                                              begin,