diff options
| author | Davanum Srinivas <davanum@gmail.com> | 2012-10-22 09:39:34 -0400 |
|---|---|---|
| committer | Davanum Srinivas <davanum@gmail.com> | 2012-10-22 09:41:05 -0400 |
| commit | 837e3e35f8d7c072cafccc7a5c7d4e41c145b6b5 (patch) | |
| tree | f46ddefd7b03f3f52dc3794bc0b04298c6255e3e | |
| parent | 8cb329b2a03f1d04f13c38244477e53ca4a321f0 (diff) | |
| download | nova-837e3e35f8d7c072cafccc7a5c7d4e41c145b6b5.tar.gz nova-837e3e35f8d7c072cafccc7a5c7d4e41c145b6b5.tar.xz nova-837e3e35f8d7c072cafccc7a5c7d4e41c145b6b5.zip | |
Fix nova-volume-usage-audit
Ensure visible message in nova-volume-usage-audit go through translation.
Fixes LP: #1068946
Change-Id: Iaffe415b709dc0f515d32cad46c3fa851321fd31
| -rwxr-xr-x | bin/nova-volume-usage-audit | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/nova-volume-usage-audit b/bin/nova-volume-usage-audit index 3e9d88bb5..3514135f5 100755 --- a/bin/nova-volume-usage-audit +++ b/bin/nova-volume-usage-audit @@ -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") |
