diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2013-05-09 22:47:14 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2013-05-09 22:47:14 -0700 |
commit | b22a82787378e442cb477d2368ccd7653fd95594 (patch) | |
tree | 63b600d86aaea25753cecb644dd9b09a1128a63f /cloudinit/handlers | |
parent | 2b351c5435939d16ba06ec0c45847d47f4b21d51 (diff) | |
download | vyos-cloud-init-b22a82787378e442cb477d2368ccd7653fd95594.tar.gz vyos-cloud-init-b22a82787378e442cb477d2368ccd7653fd95594.zip |
Adjust comment on why we are merging cloud config the way we are.
Diffstat (limited to 'cloudinit/handlers')
-rw-r--r-- | cloudinit/handlers/cloud_config.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/cloudinit/handlers/cloud_config.py b/cloudinit/handlers/cloud_config.py index 529109ce..c97ca3e8 100644 --- a/cloudinit/handlers/cloud_config.py +++ b/cloudinit/handlers/cloud_config.py @@ -35,7 +35,19 @@ MERGE_HEADER = 'Merge-Type' # where previously each cloud config part was appended to a larger yaml # file and then finally that file was loaded as one big yaml file we need # to mimic that behavior by altering the default strategy to be replacing -# keys of later mergers. +# keys of prior merges. +# +# +# For example +# #file 1 +# a: 3 +# #file 2 +# a: 22 +# #combined file (comments not included) +# a: 3 +# a: 22 +# +# This gets loaded into yaml with final result {'a': 22} DEF_MERGERS = mergers.string_extract_mergers('dict(replace)+list()+str()') |