diff options
author | Britney Fransen <brfransen@gmail.com> | 2015-08-04 12:46:33 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2015-08-04 12:46:33 (GMT) |
commit | d3b1bb6d77ab7e31192cd6926ca5fd79a94e19c2 (patch) | |
tree | a4f37fc3d83f4f901754bae6f3621b4a601df723 /abs/core/xymon/hbnotes.py | |
parent | f0dce6aa6732f0792b0348677358b1b134f9a70a (diff) | |
download | linhes_pkgbuild-d3b1bb6d77ab7e31192cd6926ca5fd79a94e19c2.zip linhes_pkgbuild-d3b1bb6d77ab7e31192cd6926ca5fd79a94e19c2.tar.gz linhes_pkgbuild-d3b1bb6d77ab7e31192cd6926ca5fd79a94e19c2.tar.bz2 |
xymon: hbnotes.py: replace - in hostname with __
Needed because the dot file format doesn't like -
Diffstat (limited to 'abs/core/xymon/hbnotes.py')
-rwxr-xr-x | abs/core/xymon/hbnotes.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/abs/core/xymon/hbnotes.py b/abs/core/xymon/hbnotes.py index d14d62a..d18a606 100755 --- a/abs/core/xymon/hbnotes.py +++ b/abs/core/xymon/hbnotes.py @@ -40,6 +40,7 @@ def create_dot_file(): for row in result: hostname = row[0] dot_hostname = row[0].replace('.','_') + dot_hostname = row[0].replace('-','__') #Find the system type cursor.execute("select value,data from settings where hostname=%s and value in ('HostSystemType','HostRunFrontend');",(row)) hostvalues=cursor.fetchall() |