]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
fix typos
authorAlfredo Deza <alfredo@deza.pe>
Thu, 18 Jul 2013 18:33:09 +0000 (14:33 -0400)
committerAlfredo Deza <alfredo@deza.pe>
Thu, 18 Jul 2013 18:33:09 +0000 (14:33 -0400)
ceph_deploy/mon.py
ceph_deploy/util/paths/mon.py

index 3ae3f8a6c947bec5c67ccf314ef7e89754d4d7ac..a89fd6228aeb0570dd49bf07788269b63a325758 100644 (file)
@@ -9,13 +9,13 @@ from . import exc
 from . import lsb
 from .cliutil import priority
 from .sudo_pushy import get_transport
-from .util import paths, constants
+from .util import paths
 
 
 LOG = logging.getLogger(__name__)
 
 
-def create_mon(cluster, monitor_keyring, init, paths, constants):
+def create_mon(cluster, monitor_keyring, init, paths):
     import os
     import socket
     import subprocess
@@ -29,8 +29,8 @@ def create_mon(cluster, monitor_keyring, init, paths, constants):
         os.makedirs(path)
 
     if not os.path.exists(done_path):
-        if not os.path.exists(constants.tnp_path):
-            os.makedirs(constants.tnp_path)
+        if not os.path.exists(path.mon.constants.tmp_path):
+            os.makedirs(path.mon.constants.tmp_path)
         keyring = paths.mon.keyring(cluster, hostname)
 
         with file(keyring, 'w') as f:
@@ -130,7 +130,6 @@ def mon_create(args):
                 monitor_keyring=monitor_keyring,
                 init=init,
                 paths=paths,
-                constants=constants,
                 )
 
             # TODO add_bootstrap_peer_hint
index f29d5be67b2c52c0f59100264c3088f3cd490d47..46a728a87dc2d370f832d4e2f3162b15cfc3a20c 100644 (file)
@@ -1,7 +1,7 @@
 """
 Common paths for mon, based on the constant file paths defined in
 ``ceph_deploy.util.constants``.
-All classmethods return a string representation of the absolute path
+All functions return a string representation of the absolute path
 construction.
 """
 from os.path import join