From: Alfredo Deza Date: Fri, 4 Oct 2013 20:55:26 +0000 (-0400) Subject: init with 5 threads by default X-Git-Tag: v1.2.7~1^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=736b5e93763327becf4eaf2aaf0b63fbc83ddf2d;p=ceph-deploy.git init with 5 threads by default Signed-off-by: Alfredo Deza --- 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: