Commit 35979a05 by Alain Takoudjou

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

1 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"
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!