From c1e084417582d39a4fe848a760db153440963231 Mon Sep 17 00:00:00 2001 From: Luka Peschke Date: Thu, 22 Mar 2018 10:02:36 +0100 Subject: [PATCH] Add no_group parameter to hashmap "list_*" calls The "no_group" parameter is available in the API and in the hashmap module's "list_mappings" and "list_thresholds" functions, but it is ignored. This patch fixes it by passing the parameter through. Change-Id: I5ab4e664c90144bb722eb5ce47129a6cece5fd53 --- cloudkitty/rating/hash/controllers/mapping.py | 1 + cloudkitty/rating/hash/controllers/threshold.py | 1 + 2 files changed, 2 insertions(+) diff --git a/cloudkitty/rating/hash/controllers/mapping.py b/cloudkitty/rating/hash/controllers/mapping.py index 1ba29e40..b98ef5b9 100644 --- a/cloudkitty/rating/hash/controllers/mapping.py +++ b/cloudkitty/rating/hash/controllers/mapping.py @@ -84,6 +84,7 @@ class HashMapMappingsController(rating.RatingRestControllerBase): service_uuid=service_id, field_uuid=field_id, group_uuid=group_id, + no_group=no_group, **search_opts) for mapping_uuid in mappings_uuid_list: mapping_db = hashmap.get_mapping(uuid=mapping_uuid) diff --git a/cloudkitty/rating/hash/controllers/threshold.py b/cloudkitty/rating/hash/controllers/threshold.py index cb4b5e9e..c7369923 100644 --- a/cloudkitty/rating/hash/controllers/threshold.py +++ b/cloudkitty/rating/hash/controllers/threshold.py @@ -84,6 +84,7 @@ class HashMapThresholdsController(rating.RatingRestControllerBase): service_uuid=service_id, field_uuid=field_id, group_uuid=group_id, + no_group=no_group, **search_opts) for threshold_uuid in thresholds_uuid_list: threshold_db = hashmap.get_threshold(uuid=threshold_uuid)