Cast to an int, otherwise error condition is never met.

This commit is contained in:
Ralph Bean 2014-05-12 20:25:29 +00:00
parent b8ef359849
commit e87b4635b8
2 changed files with 5 additions and 5 deletions

View file

@ -9,8 +9,8 @@ import zmq
try:
service = sys.argv[1]
check_consumer = sys.argv[2]
backlog_warning = sys.argv[3]
backlog_critical = sys.argv[4]
backlog_warning = int(sys.argv[3])
backlog_critical = int(sys.argv[4])
fname = '/var/run/fedmsg/monitoring-%s.socket' % service
if not os.path.exists(fname):
print "UNKNOWN - %s does not exist" % fname