Fix database-list via CLI for large # of dbs

When an instance contains more than 20 databases, only the last n-20 were being
shown when trove database-list was run. The do_database_list method wasn't
correctly tracking the output when multiple pages were present.

Change-Id: I349534735b4118f3cdd4897c36bb17c0a1fdceb1
Closes-Bug: #1246599
This commit is contained in:
Doug Shelley
2014-03-25 20:52:17 +00:00
committed by Doug Shelley
parent 3fbb0074d1
commit 75b0fe4d40

View File

@@ -377,7 +377,7 @@ def do_database_list(cs, args):
databases = wrapper.items
while (wrapper.next):
wrapper = cs.databases.list(args.instance, marker=wrapper.next)
databases = wrapper.items
databases += wrapper.items
utils.print_list(databases, ['name'])