From 570d8f3b8570aaa4c6225bebf72a5c749cde20da Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 9 Dec 2013 05:20:14 +0100 Subject: [PATCH] Cast to int properly --- cstatsd/bootstrap-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cstatsd/bootstrap-config b/cstatsd/bootstrap-config index 9e1df23..aa04aa0 100755 --- a/cstatsd/bootstrap-config +++ b/cstatsd/bootstrap-config @@ -13,7 +13,7 @@ while True: if port.strip() == "": break service_name = raw_input("Service name for port %s: " % port) - ports[port] = service_name + ports[int(port)] = service_name print "The same thing, except now for processes to check. Just hit enter without entering any information when you're done; the same goes for the argument list. As a wildcard, you can use *"