Skip to content

Commit 45dc0b8

Browse files
authored
fix(examples): Updating a map returns null (#129)
1 parent 67d8e1b commit 45dc0b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/list_alert_notifications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ def print_notifications(notifications):
1616
for entity in notification['entities']:
1717
for value in entity['metricValues']:
1818
values.append(str(value['value']))
19-
19+
notification.update({'values': ','.join(values)})
2020
print("#%(id)s, State: %(state)s, Severity: %(severity)s, Scope: %(filter)s, Condition: %(condition)s, Value: %(values)s, Resolved: %(resolved)s" %
21-
notification.update({'values': ','.join(values)}))
21+
notification)
2222

2323

2424
#

0 commit comments

Comments
 (0)