summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/hbnotes.py
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2019-03-25 16:56:53 (GMT)
committerBritney Fransen <brfransen@gmail.com>2019-03-25 16:56:53 (GMT)
commit308e72b1e205ad9a4b0ae94c36c4cc74e53f22be (patch)
treec60124389b6eb4c1cc20822f095db8c40f605b37 /abs/core/xymon/hbnotes.py
parent3962f81ceda29c7b8f88a675d67600e47bfc871f (diff)
downloadlinhes_pkgbuild-308e72b1e205ad9a4b0ae94c36c4cc74e53f22be.zip
linhes_pkgbuild-308e72b1e205ad9a4b0ae94c36c4cc74e53f22be.tar.gz
linhes_pkgbuild-308e72b1e205ad9a4b0ae94c36c4cc74e53f22be.tar.bz2
xymon: hbnotes.py: replace . in hostname correctly
Diffstat (limited to 'abs/core/xymon/hbnotes.py')
-rwxr-xr-xabs/core/xymon/hbnotes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/abs/core/xymon/hbnotes.py b/abs/core/xymon/hbnotes.py
index d18a606..1d3e459 100755
--- a/abs/core/xymon/hbnotes.py
+++ b/abs/core/xymon/hbnotes.py
@@ -39,8 +39,8 @@ def create_dot_file():
tunerdict = {}
for row in result:
hostname = row[0]
- dot_hostname = row[0].replace('.','_')
- dot_hostname = row[0].replace('-','__')
+ dot_hostname = hostname.replace('.','_')
+ dot_hostname = dot_hostname.replace('-','__')
#Find the system type
cursor.execute("select value,data from settings where hostname=%s and value in ('HostSystemType','HostRunFrontend');",(row))
hostvalues=cursor.fetchall()