summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-10-11 21:36:34 -0700
committerJoshua Harlow <harlowja@gmail.com>2014-10-11 21:36:34 -0700
commitf99d19b95009fea854adbb376518f92c195af917 (patch)
tree2d677e96e20473aebdf15b53c8ecda9d26bd2bf9 /cloudinit
parentda89dca32a3dd394c6a19807856871a645f2acc4 (diff)
downloadvyos-cloud-init-f99d19b95009fea854adbb376518f92c195af917.tar.gz
vyos-cloud-init-f99d19b95009fea854adbb376518f92c195af917.zip
Add a comment explaining the param path logic
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/config/cc_chef.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cloudinit/config/cc_chef.py b/cloudinit/config/cc_chef.py
index 29238861..687be69f 100644
--- a/cloudinit/config/cc_chef.py
+++ b/cloudinit/config/cc_chef.py
@@ -151,6 +151,9 @@ def handle(name, cfg, cloud, log, _args):
if template_fn:
iid = str(cloud.datasource.get_instance_id())
params = get_template_params(iid, chef_cfg, log)
+ # Do a best effort attempt to ensure that the template values that
+ # are associated with paths have there parent directory created
+ # before they are used by the chef-client itself.
param_paths = set()
for (k, v) in params.items():
if k in CHEF_RB_TPL_PATH_KEYS and v: