Skip to content

Commit cbafb5f

Browse files
authored
Merge pull request #93 from stackhpc/upstream/2024.1-2025-03-17
Synchronise 2024.1 with upstream
2 parents 5b393cf + 265ad47 commit cbafb5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

glance/common/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,5 +732,9 @@ def get_store_weight(location):
732732
return 0
733733

734734
sorted_locations = sorted(locations, key=get_store_weight, reverse=True)
735-
LOG.debug(('Sorted locations: %s'), sorted_locations)
735+
scrubbed = []
736+
for loc in sorted_locations:
737+
scrubbed.append({'store_name': loc["metadata"].get("store")})
738+
739+
LOG.debug(('Sorted locations: %s'), scrubbed)
736740
return sorted_locations

0 commit comments

Comments
 (0)