Skip to content

Commit

Permalink
Merge "object_list method, when listing all objects of a"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins CI authored and opencontrail-ci-admin committed Sep 11, 2020
2 parents 596d36a + ea11221 commit 0b80eb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config/common/cfgm_common/vnc_cassandra.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,10 @@ def filter_rows_no_anchor():
return list(filt_obj_infos.values()), marker
# end filter_rows_no_anchor

if count and not filters:
# when listing all objects of a type
# return early if only count query is in request
return (True, sum(1 for col in cols), None)
filtered_rows, ret_marker = filter_rows_no_anchor()
children_fq_names_uuids.extend(filtered_rows)

Expand Down

0 comments on commit 0b80eb7

Please sign in to comment.