From: Alfredo Deza Date: Thu, 21 Aug 2014 19:07:31 +0000 (-0400) Subject: error if users calls 'new' with custom ceph conf flag X-Git-Tag: v1.5.12~6^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=01f91a3f7e879684ef098e529af452044cc7e197;p=ceph-deploy.git error if users calls 'new' with custom ceph conf flag Signed-off-by: Alfredo Deza --- 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')