Allow for merging with json-patch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Joshua Harlow |
Bug Description
It would be pretty nice to allow for merging using the json patch specification.
https:/
Said specification provides a common way to add/remove/delete when patching:
'''
This format is also potentially useful in other cases in which it is
necessary to make partial updates to a JSON document or to a data
structure that has similar constraints (i.e., they can be serialized
as an object or an array using the JSON grammar).
'''
Since cloud-inits cloud-config is yaml (but could just as easily be json), the above seems pretty applicable to the type of updates (merging) that cloud-init performs. To start it might be neat to allow for a new mime-type that #json-patch where these types of merging operations happen.
https:/
Related branches
- cloud-init Commiters: Pending requested
-
Diff: 100 lines (+32/-7)3 files modifiedRequires (+3/-0)
cloudinit/handlers/__init__.py (+1/-0)
cloudinit/handlers/cloud_config.py (+28/-7)
Changed in cloud-init: | |
assignee: | nobody → Joshua Harlow (harlowja) |
This was fixed in trunk at revno 842.