1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

int conversion

convert port in integer when it is set from config file
This commit is contained in:
minitux 2014-06-24 15:57:05 +02:00
parent 624c826a27
commit 78e584dca9

View file

@ -23,7 +23,7 @@ def get_stats():
data = '';
HOST = os.environ.get('NUTCRACKER_STATS_HOST', '127.0.0.1');
PORT = os.environ.get('NUTCRACKER_STATS_PORT', 22222)
PORT = int(os.environ.get('NUTCRACKER_STATS_PORT', 22222))
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))