Skip to content

Commit 1894b2d

Browse files
committedSep 12, 2014
vPoller Zabbix Helper: Dump any result to JSON before returning to client
1 parent f9ae086 commit 1894b2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/vpoller/helpers/zabbix.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
3131
"""
3232

33+
import json
3334
import logging
3435

3536

@@ -121,7 +122,7 @@ def run(self):
121122
result
122123
)
123124

124-
return result
125+
return json.dumps(result, ensure_ascii=False)
125126

126127
def zabbix_item_value(self):
127128
"""

0 commit comments

Comments
 (0)
Please sign in to comment.