~corey.bryant/charms/trusty/ceph/render

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/fetch/bzrurl.py

  • Committer: Edward Hope-Morley
  • Date: 2014-11-25 18:29:07 UTC
  • mfrom: (85.2.4 ceph)
  • Revision ID: edward.hope-morley@canonical.com-20141125182907-oyi0vts2tw6o0a5p
[niedbalski,r=hopem]

Adds sysctl config option to allow dict of
sysctl key/val pairs to be set on ceph nodes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
)
6
6
from charmhelpers.core.host import mkdir
7
7
 
 
8
import six
 
9
if six.PY3:
 
10
    raise ImportError('bzrlib does not support Python3')
 
11
 
8
12
try:
9
13
    from bzrlib.branch import Branch
10
14
except ImportError:
42
46
        dest_dir = os.path.join(os.environ.get('CHARM_DIR'), "fetched",
43
47
                                branch_name)
44
48
        if not os.path.exists(dest_dir):
45
 
            mkdir(dest_dir, perms=0755)
 
49
            mkdir(dest_dir, perms=0o755)
46
50
        try:
47
51
            self.branch(source, dest_dir)
48
52
        except OSError as e: