From 736b5e93763327becf4eaf2aaf0b63fbc83ddf2d Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 4 Oct 2013 16:55:26 -0400 Subject: [PATCH] init with 5 threads by default Signed-off-by: Alfredo Deza --- ceph_deploy/connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ceph_deploy/connection.py b/ceph_deploy/connection.py index ae6eee1..381f6af 100644 --- a/ceph_deploy/connection.py +++ b/ceph_deploy/connection.py @@ -2,7 +2,7 @@ from ceph_deploy.lib.remoto import Connection from sudo_pushy import needs_sudo # TODO move this to utils once pushy is out -def get_connection(hostname, logger): +def get_connection(hostname, logger, threads=5): """ A very simple helper, meant to return a connection that will know about the need to use sudo. @@ -12,6 +12,7 @@ def get_connection(hostname, logger): hostname, logger=logger, sudo=needs_sudo(), + threads=threads, ) except Exception as error: -- 2.47.3