Handle cloudpulse result when result < 240
Change-Id: I82166f06b37d1821ce6d05f92d66c9f28db6091f
This commit is contained in:
parent
3cdea3ecfe
commit
3749ebaee5
@ -187,13 +187,13 @@ def print_list(objs, fields, formatters=None, sortby_index=0,
|
||||
|
||||
# Limit the number to 25 (default) or provided number from user
|
||||
# Show last entries after sorting
|
||||
kwargs['start'] = 240 - limit_number
|
||||
kwargs['end'] = 240
|
||||
kwargs['start'] = 0
|
||||
kwargs['end'] = limit_number
|
||||
|
||||
pt = prettytable.PrettyTable(field_labels)
|
||||
pt.align = 'l'
|
||||
|
||||
for o in objs:
|
||||
for o in objs[::-1]:
|
||||
row = []
|
||||
for field in fields:
|
||||
if field in formatters:
|
||||
|
Loading…
Reference in New Issue
Block a user