Skip to content

Commit b3b11f9

Browse files
committed
Fix bug where dimension value is not a string
This caused the Monasca API to reject the metric.
1 parent 0cb3faf commit b3b11f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

os_capacity/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def get_key(allocation):
242242
if key_name:
243243
dimensions[name_key] = key_name
244244
value_meta = {'usage_summary': usage}
245-
dimensions['version'] = 2.0
245+
dimensions['version'] = '2.0'
246246

247247
metrics_to_send.append(metrics.Metric(
248248
name="usage.%s.count" % group_by,

0 commit comments

Comments
 (0)