summaryrefslogtreecommitdiff
path: root/cloudinit/handlers
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2013-05-09 22:47:14 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2013-05-09 22:47:14 -0700
commitb22a82787378e442cb477d2368ccd7653fd95594 (patch)
tree63b600d86aaea25753cecb644dd9b09a1128a63f /cloudinit/handlers
parent2b351c5435939d16ba06ec0c45847d47f4b21d51 (diff)
downloadvyos-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.py14
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()')