From: Alfredo Deza Date: Thu, 18 Jul 2013 18:33:09 +0000 (-0400) Subject: fix typos X-Git-Tag: v1.2~30^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fbe48c64b5a67b7d4a3e30db826048d3c4c871cd;p=ceph-deploy.git fix typos --- diff --git a/ceph_deploy/mon.py b/ceph_deploy/mon.py index 3ae3f8a..a89fd62 100644 --- a/ceph_deploy/mon.py +++ b/ceph_deploy/mon.py @@ -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 diff --git a/ceph_deploy/util/paths/mon.py b/ceph_deploy/util/paths/mon.py index f29d5be..46a728a 100644 --- a/ceph_deploy/util/paths/mon.py +++ b/ceph_deploy/util/paths/mon.py @@ -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