]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
init with 5 threads by default
authorAlfredo Deza <alfredo.deza@inktank.com>
Fri, 4 Oct 2013 20:55:26 +0000 (16:55 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Fri, 4 Oct 2013 20:55:26 +0000 (16:55 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/connection.py

index ae6eee149ecf1f597fbf472a2164e10c477c54e7..381f6afa4c9bd0454eb2cda6a9881067950e2c18 100644 (file)
@@ -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: