Permalink
Browse files

'/' is not allowed in graphite names, add it to sanitize

  • Loading branch information...
NorthIsUp committed Mar 7, 2012
1 parent dd42105 commit 59c8e558bc9829b7133cb26b75319efb087ba432
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/greplin/scales/graphite.py
@@ -46,7 +46,7 @@ def __init__(self, host, port, prefix=None):
def _sanitize(self, name):
"""Sanitize a name for graphite."""
- return name.strip().replace(' ', '-').replace('.', '-')
+ return name.strip().replace(' ', '-').replace('.', '-').replace('/', '_')
def _forbidden(self, path, value):

0 comments on commit 59c8e55

Please sign in to comment.