]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix cinder-manage backup list to work with uuids
authorStephen Mulcahy <stephen.mulcahy@hp.com>
Fri, 5 Apr 2013 09:55:01 +0000 (09:55 +0000)
committerStephen Mulcahy <stephen.mulcahy@hp.com>
Fri, 5 Apr 2013 09:55:40 +0000 (09:55 +0000)
Fixes bug #1164922

Change-Id: I8ed7ff7ca334b983d60445d96cd1f6c368766407

bin/cinder-manage

index 15ad760b14c569b5730e1fa05c533f989e89fda1..de7955d12b92d2fe0955e11476c53a323fa4e460 100755 (executable)
@@ -654,7 +654,7 @@ class BackupCommands(object):
         ctxt = context.get_admin_context()
         backups = db.backup_get_all(ctxt)
 
-        hdr = "%-6s\t%-32s\t%-32s\t%-24s\t%-24s\t%-12s\t%-12s\t%-12s\t%-12s"
+        hdr = "%-32s\t%-32s\t%-32s\t%-24s\t%-24s\t%-12s\t%-12s\t%-12s\t%-12s"
         print hdr % (_('ID'),
                      _('User ID'),
                      _('Project ID'),
@@ -665,7 +665,7 @@ class BackupCommands(object):
                      _('Size'),
                      _('Object Count'))
 
-        res = "%-6d\t%-32s\t%-32s\t%-24s\t%-24s\t%-12s\t%-12s\t%-12d\t%-12d"
+        res = "%-32s\t%-32s\t%-32s\t%-24s\t%-24s\t%-12s\t%-12s\t%-12d\t%-12d"
         for backup in backups:
             object_count = 0
             if backup['object_count'] is not None: