From 78e584dca9857143699ceeee30b9b2bc7e31d11c Mon Sep 17 00:00:00 2001 From: minitux Date: Tue, 24 Jun 2014 15:57:05 +0200 Subject: [PATCH] int conversion convert port in integer when it is set from config file --- plugins/nutcracker/nutcracker_requests_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nutcracker/nutcracker_requests_ b/plugins/nutcracker/nutcracker_requests_ index affba97c..2ed5a774 100755 --- a/plugins/nutcracker/nutcracker_requests_ +++ b/plugins/nutcracker/nutcracker_requests_ @@ -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))