Handle cloudpulse result when result < 240

Change-Id: I82166f06b37d1821ce6d05f92d66c9f28db6091f
This commit is contained in:
Sawan Choudhary 2020-04-07 00:02:08 -07:00
parent 3cdea3ecfe
commit 3749ebaee5

View File

@ -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: