From: Alfredo Deza Date: Thu, 12 Sep 2013 18:54:50 +0000 (-0400) Subject: use the new get_connection in mon.py X-Git-Tag: v1.2.4~7^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=98e2df20eba9d40330c6e226458a852f58650f71;p=ceph-deploy.git use the new get_connection in mon.py Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/mon.py b/ceph_deploy/mon.py index fc268bf..6bb332c 100644 --- a/ceph_deploy/mon.py +++ b/ceph_deploy/mon.py @@ -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(