summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_landscape.py
diff options
context:
space:
mode:
authorharlowja <harlowja@virtualbox.rhel>2012-06-21 09:12:16 -0700
committerharlowja <harlowja@virtualbox.rhel>2012-06-21 09:12:16 -0700
commit0c83ff5cb81b6de3028cf90e7dd6aba565682dbf (patch)
treea499408fa70a248b32f0e82e36b9ae893dce46e9 /cloudinit/config/cc_landscape.py
parent64f1347cb8f2580339d539b7772e7872ed81cae9 (diff)
downloadvyos-cloud-init-0c83ff5cb81b6de3028cf90e7dd6aba565682dbf.tar.gz
vyos-cloud-init-0c83ff5cb81b6de3028cf90e7dd6aba565682dbf.zip
1. Renames for debug message from 'transform' to 'module'
2. Fixing up more cloud.path.joins found to use the right ro/rw filename
Diffstat (limited to 'cloudinit/config/cc_landscape.py')
-rw-r--r--cloudinit/config/cc_landscape.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/cloudinit/config/cc_landscape.py b/cloudinit/config/cc_landscape.py
index 599276a7..d45c9203 100644
--- a/cloudinit/config/cc_landscape.py
+++ b/cloudinit/config/cc_landscape.py
@@ -56,7 +56,7 @@ def handle(name, cfg, cloud, log, _args):
"""
if not ConfigObj:
log.warn(("'ConfigObj' support not available,"
- " running transform %s disabled"), name)
+ " running module %s disabled"), name)
return
ls_cloudcfg = cfg.get("landscape", {})
@@ -66,9 +66,14 @@ def handle(name, cfg, cloud, log, _args):
" but not a dictionary type,"
" is a %s instead"), util.obj_name(ls_cloudcfg))
- lsc_client_fn = cloud.paths.join(True, LSC_CLIENT_CFG_FILE)
- merged = merge_together([LSC_BUILTIN_CFG, lsc_client_fn, ls_cloudcfg])
+ merge_data = [
+ LSC_BUILTIN_CFG,
+ cloud.paths.join(True, LSC_CLIENT_CFG_FILE),
+ ls_cloudcfg,
+ ]
+ merged = merge_together(merge_data)
+ lsc_client_fn = cloud.paths.join(False, LSC_CLIENT_CFG_FILE)
lsc_dir = cloud.paths.join(False, os.path.dirname(lsc_client_fn))
if not os.path.isdir(lsc_dir):
util.ensure_dir(lsc_dir)