Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
LOG = logging.getLogger(__name__)
+
def fetch_file(args, frompath, topath, hosts):
# mon.
if os.path.exists(topath):
LOG.warning('Unable to find %s on %s', frompath, hosts)
return False
+
def gatherkeys(args):
ret = 0
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:
return ret
+
@priority(40)
def make(parser):
"""