web_log plugin: repalce spaces in "name" with "_"
Ilya committed
Feb 10, 2017 at 11:52 UTC
6842ffd1d10d18577ca49b38e1e5e1bbd83e8481
1 file changed
+1
-1
python.d/web_log.chart.py
+1
-1
@@ -186,7 +186,7 @@ class Service(LogService):
186
"""
187
add_to_name = override_name or name
188
if add_to_name:
189
- return '_'.join(['web_log', add_to_name])
189
+ return '_'.join(['web_log', re.sub('\s+', '_', add_to_name)])
190
else:
191
return 'web_log'
192