aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci/check_deployment.py
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2018-01-29 01:26:17 +0000
committerLinda Wang <wangwulin@huawei.com>2018-01-29 01:48:50 +0000
commit5a77070ed767158017ceb8ea3c319af60c86b830 (patch)
tree318829ffa7fc11cdaee4922ef9e7d2c4f97a86f5 /functest/ci/check_deployment.py
parentc78fcdeed0ed74661484082801f16c14586b75d4 (diff)
Fix the connect issue when checking deployment
Socket.connect() requires only one param with type tuple. Change-Id: I63aa4633e80bde3ad5e1b5af9d67d8f46eb84571 Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/ci/check_deployment.py')
-rw-r--r--functest/ci/check_deployment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/ci/check_deployment.py b/functest/ci/check_deployment.py
index 81607dff..8d19d850 100644
--- a/functest/ci/check_deployment.py
+++ b/functest/ci/check_deployment.py
@@ -44,7 +44,7 @@ def verify_connectivity(endpoint):
port = url.port
if not port:
port = 443 if url.scheme == "https" else 80
- connection.connect(url.hostname, port)
+ connection.connect((url.hostname, port))
LOGGER.debug('%s:%s is reachable!', url.hostname, port)
return True
except socket.error: