]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix debug output for cinder-volume-usage-audit
authorTobias Urdin <tobias@busybox.se>
Thu, 19 Nov 2015 08:18:08 +0000 (09:18 +0100)
committerMichal Dulko <michal.dulko@intel.com>
Fri, 20 Nov 2015 17:13:56 +0000 (17:13 +0000)
Fixes variables not being included in log output.

Change-Id: Ic403166b88b1ba549fe7a7b0cd95d7cbb7a0de4c

cinder/cmd/volume_usage_audit.py

index 23b9a4a1cfaaa2a88f38617d03036428a491d7fc..e9f20bf8a861d2781c628146a3af0ad92f97dddb 100644 (file)
@@ -103,7 +103,7 @@ def main():
     volumes = db.volume_get_active_by_window(admin_context,
                                              begin,
                                              end)
-    LOG.debug("Found %d volumes"), len(volumes)
+    LOG.debug("Found %d volumes", len(volumes))
     for volume_ref in volumes:
         try:
             LOG.debug("Send exists notification for <volume_id: "
@@ -174,7 +174,7 @@ def main():
 
     snapshots = objects.SnapshotList.get_active_by_window(admin_context,
                                                           begin, end)
-    LOG.debug("Found %d snapshots"), len(snapshots)
+    LOG.debug("Found %d snapshots", len(snapshots))
     for snapshot_ref in snapshots:
         try:
             LOG.debug("Send notification for <snapshot_id: %(snapshot_id)s> "