Skip to content

Commit

Permalink
Fix nova-volume-usage-audit
Browse files Browse the repository at this point in the history
Ensure visible message in nova-volume-usage-audit go through translation.

Fixes LP: #1068946

Change-Id: Iaffe415b709dc0f515d32cad46c3fa851321fd31
  • Loading branch information
dims committed Oct 22, 2012
1 parent 8cb329b commit 837e3e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/nova-volume-usage-audit
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ if __name__ == '__main__':
flags.FLAGS(sys.argv)
logging.setup("nova")
begin, end = utils.last_completed_audit_period()
print "Starting volume usage audit"
print "Creating usages for %s until %s" % (str(begin), str(end))
print _("Starting volume usage audit")
print _("Creating usages for %s until %s") % (str(begin), str(end))
volumes = db.volume_get_active_by_window(admin_context,
begin,
end)
print "Found %d volumes" % len(volumes)
print _("Found %d volumes") % len(volumes)
for volume_ref in volumes:
try:
volume_utils.notify_usage_exists(
admin_context, volume_ref)
except Exception, e:
print traceback.format_exc(e)
print "Volume usage audit completed"
print _("Volume usage audit completed")

0 comments on commit 837e3e3

Please sign in to comment.