diff --git a/glance/common/utils.py b/glance/common/utils.py index feb2c81565..aadb976104 100644 --- a/glance/common/utils.py +++ b/glance/common/utils.py @@ -733,5 +733,9 @@ def get_store_weight(location): return store.weight if store is not None else 0 sorted_locations = sorted(locations, key=get_store_weight, reverse=True) - LOG.debug(('Sorted locations: %s'), sorted_locations) + scrubbed = [] + for loc in sorted_locations: + scrubbed.append({'store_name': loc["metadata"].get("store")}) + + LOG.debug(('Sorted locations: %s'), scrubbed) return sorted_locations