From: Alfredo Deza Date: Tue, 17 Sep 2013 19:51:13 +0000 (-0400) Subject: minor style cleanup for gatherkeys X-Git-Tag: v1.2.7~16^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1c07d1cec8c9bb9a738557eafbd9703742aaa5cc;p=ceph-deploy.git minor style cleanup for gatherkeys Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/gatherkeys.py b/ceph_deploy/gatherkeys.py index bb48eb0..8f5a26b 100644 --- a/ceph_deploy/gatherkeys.py +++ b/ceph_deploy/gatherkeys.py @@ -7,6 +7,7 @@ from .sudo_pushy import get_transport LOG = logging.getLogger(__name__) + def fetch_file(args, frompath, topath, hosts): # mon. if os.path.exists(topath): @@ -27,6 +28,7 @@ def fetch_file(args, frompath, topath, hosts): LOG.warning('Unable to find %s on %s', frompath, hosts) return False + def gatherkeys(args): ret = 0 @@ -46,8 +48,7 @@ def gatherkeys(args): r = fetch_file( args=args, frompath='/var/lib/ceph/mon/%s-{hostname}/keyring' % args.cluster, - topath='{cluster}.mon.keyring'.format( - cluster=args.cluster), + topath='{cluster}.mon.keyring'.format(cluster=args.cluster), hosts=args.mon, ) if not r: @@ -70,6 +71,7 @@ def gatherkeys(args): return ret + @priority(40) def make(parser): """