diff options
author | Joshua Harlow <harlowja@gmail.com> | 2014-10-11 21:36:34 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2014-10-11 21:36:34 -0700 |
commit | f99d19b95009fea854adbb376518f92c195af917 (patch) | |
tree | 2d677e96e20473aebdf15b53c8ecda9d26bd2bf9 /cloudinit | |
parent | da89dca32a3dd394c6a19807856871a645f2acc4 (diff) | |
download | vyos-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.py | 3 |
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: |