]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
use the new get_connection in mon.py
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 12 Sep 2013 18:54:50 +0000 (14:54 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 12 Sep 2013 18:54:50 +0000 (14:54 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/mon.py

index fc268bfebc782c96ab305e94689b2c836edfc37e..6bb332c6d68cdebb02e67a85f0de41a2bea7f373 100644 (file)
@@ -10,9 +10,10 @@ from . import exc
 from .cliutil import priority
 from .sudo_pushy import get_transport
 from .util import paths
-from .lib.remoto import Connection, process
+from .lib.remoto import process
 from . import hosts
 from .misc import mon_hosts, remote_shortname
+from .connection import get_connection
 
 
 LOG = logging.getLogger(__name__)
@@ -27,7 +28,7 @@ def mon_status(conn, logger, hostname, silent=False):
     running, while ``True`` would mean the monitor is up and running correctly.
     """
     mon = 'mon.%s' % hostname
-    rconn = Connection(hostname, logger=logger, sudo=True)
+    rconn = get_connection(hostname, logger=logger)
 
     try:
         out, err, code = process.check(