Skip to content

Commit e210c7e

Browse files
authored
Only spit attributes on = if it exists (#162)
1 parent 7e3dda9 commit e210c7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

alertaclient/commands/cmd_send.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def send_alert(resource, event, **kwargs):
8888
value=value,
8989
text=text,
9090
tags=tags,
91-
attributes=dict(a.split('=', maxsplit=1) for a in attributes),
91+
attributes=dict(a.split('=', maxsplit=1) if '=' in a else (a, None) for a in attributes),
9292
origin=origin,
9393
type=type,
9494
timeout=timeout,

0 commit comments

Comments
 (0)