From 308e72b1e205ad9a4b0ae94c36c4cc74e53f22be Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Mon, 25 Mar 2019 16:56:53 +0000 Subject: xymon: hbnotes.py: replace . in hostname correctly --- abs/core/xymon/PKGBUILD | 6 +++--- abs/core/xymon/hbnotes.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/abs/core/xymon/PKGBUILD b/abs/core/xymon/PKGBUILD index 76bf18d..06c9ca4 100755 --- a/abs/core/xymon/PKGBUILD +++ b/abs/core/xymon/PKGBUILD @@ -1,10 +1,10 @@ pkgbase=xymon pkgname=('xymonserver' 'xymonclient') pkgver=4.3.28 -pkgrel=7 +pkgrel=8 pkgdesc="Xymon is a system for monitoring of hosts and networks" license=('GPL') -arch=('i686' 'x86_64') +arch=('x86_64') url="http://www.xymon.com/" source=("https://downloads.sourceforge.net/project/xymon/Xymon/$pkgver/$pkgbase-$pkgver.tar.gz" 'alerts.cfg' @@ -187,7 +187,7 @@ md5sums=('14501ab2cfce9a332c1590543dfcbd0f' '31ac5c1f6dcc9408b64c4107b325a9a6' '1eee1cf4ded13fcef9f3b43faa20dbe1' '80d9cfac86c6d96836e6f406e35e7cf5' - 'df77d1de72157d23a301a72288fbf7e5' + 'd2c6d0d18bdaa40a2c82332937253cfc' 'b1d5592fa92ef71303621964e84c2b9e' 'f1146cc034f6d11e7d7e68f24bc89dff' '2a509d81ee1655130ce40bf970719e0a' 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() -- cgit v0.12