From f99d19b95009fea854adbb376518f92c195af917 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 11 Oct 2014 21:36:34 -0700 Subject: Add a comment explaining the param path logic --- cloudinit/config/cc_chef.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cloudinit/config/cc_chef.py') 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: -- cgit v1.2.3