Skip to content

Commit 30f6619

Browse files
authored
Fix metrics representation in TenancySerializer (#452)
This was mistakenly updated during code formatting to return a tuple with a single element, rather than a bare string. This caused the UI to panic as it was trying to apply string functions to a list object. Restore the original string representation to fix the UI panic.
1 parent 495d77c commit 30f6619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/azimuth/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def to_representation(self, obj):
244244
"metrics": (
245245
cloud_settings.METRICS.TENANT_METRICS_URL_TEMPLATE.format(
246246
tenant_id=obj.id
247-
),
247+
)
248248
)
249249
}
250250
)

0 commit comments

Comments
 (0)