Commit 35979a05 authored by Alain Takoudjou's avatar Alain Takoudjou

promise check_port_listening: port parameter should be int or str, unicode is not accepted

parent 9b4a5287
......@@ -19,7 +19,8 @@ class RunPromise(GenericPromise):
Simply test if we can connect to specified host:port.
"""
hostname = self.getConfig('hostname')
port = self.getConfig('port')
# if type of port should be int or str, unicode is not accepted.
port = int(self.getConfig('port'))
addr = (hostname , port)
# in case of any error, we call "logger.error"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment