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:
committed by
Doug Shelley
parent
3fbb0074d1
commit
75b0fe4d40
@@ -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'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user