]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
error if users calls 'new' with custom ceph conf flag 234/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 21 Aug 2014 19:07:31 +0000 (15:07 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 21 Aug 2014 19:07:31 +0000 (15:07 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/new.py

index a55d40b1f64240ceda7606ea6c58b7bb67a028a5..c6be371dadd910a35a291a7767a3b900aa142e79 100644 (file)
@@ -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')