]> arthur.barton.de Git - netdata.git/commitdiff
Merge pull request #1468 from ktsaou/master
authorCosta Tsaousis <costa@tsaousis.gr>
Thu, 29 Dec 2016 10:38:38 +0000 (12:38 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Dec 2016 10:38:38 +0000 (12:38 +0200)
dashboard fine-tunings

plugins.d/python.d.plugin

index 05d23b9ae09f98ab8b165d929b3214fe6f2d9060..b4e6473a6223f09764aa60449e07c73763c73378 100755 (executable)
@@ -9,6 +9,7 @@ import os
 import sys
 import time
 import threading
+from re import sub
 
 # -----------------------------------------------------------------------------
 # globals & environment setup
@@ -340,7 +341,7 @@ class PythonCharts(object):
                     i += 1
                     try:
                         if job.override_name is not None:
-                            new_name = job.__module__ + '_' + job.override_name
+                            new_name = job.__module__ + '_' + sub(r'\s+', '_', job.override_name)
                             if new_name in overridden:
                                 msg.info("DROPPED:", job.name, ", job '" + job.override_name + "' is already served by another job.")
                                 self._stop(job)