diff options
author | Ilya <ilyamaschenko@gmail.com> | 2017-02-10 11:52:34 +0900 |
---|---|---|
committer | Ilya <ilyamaschenko@gmail.com> | 2017-02-10 11:52:34 +0900 |
commit | 6842ffd1d10d18577ca49b38e1e5e1bbd83e8481 (patch) | |
tree | 435193358c19e06c828f536cb332cf857740224b /python.d/web_log.chart.py | |
parent | cdaea61f1f12a764ca94324bbdedbcbfefb8871c (diff) |
web_log plugin: repalce spaces in "name" with "_"
Diffstat (limited to 'python.d/web_log.chart.py')
-rw-r--r-- | python.d/web_log.chart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python.d/web_log.chart.py b/python.d/web_log.chart.py index 9f049cddb9..28ad0d445e 100644 --- a/python.d/web_log.chart.py +++ b/python.d/web_log.chart.py @@ -186,7 +186,7 @@ class Service(LogService): """ add_to_name = override_name or name if add_to_name: - return '_'.join(['web_log', add_to_name]) + return '_'.join(['web_log', re.sub('\s+', '_', add_to_name)]) else: return 'web_log' |