From 01f91a3f7e879684ef098e529af452044cc7e197 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 21 Aug 2014 15:07:31 -0400 Subject: [PATCH] error if users calls 'new' with custom ceph conf flag Signed-off-by: Alfredo Deza --- ceph_deploy/new.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ceph_deploy/new.py b/ceph_deploy/new.py index a55d40b..c6be371 100644 --- a/ceph_deploy/new.py +++ b/ceph_deploy/new.py @@ -76,6 +76,8 @@ def ssh_copy_keys(hostname, username=None): def new(args): + if args.ceph_conf: + raise RuntimeError('will not create a ceph conf file if attemtping to re-use with `--ceph-conf` flag') LOG.debug('Creating new cluster named %s', args.cluster) cfg = conf.ceph.CephConf() cfg.add_section('global') -- 2.47.3