Skip to content

Commit

Permalink
Fix cinder-manage backup list to work with uuids
Browse files Browse the repository at this point in the history
Fixes bug #1164922

Change-Id: I8ed7ff7ca334b983d60445d96cd1f6c368766407
(cherry picked from commit 9d359c0)
  • Loading branch information
Stephen Mulcahy authored and Chuck Short committed Apr 10, 2013
1 parent e592135 commit 9318ffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/cinder-manage
Expand Up @@ -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'),
Expand All @@ -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:
Expand Down

0 comments on commit 9318ffc

Please sign in to comment.