← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1200476] Re: Allow for merging with json-patch

 

fixed in 0.7.3

** Changed in: cloud-init
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1200476

Title:
  Allow for merging with json-patch

Status in Init scripts for use on cloud images:
  Fix Released

Bug description:
  It would be pretty nice to allow for merging using the json patch
  specification.

  https://tools.ietf.org/html/rfc6902
  (https://tools.ietf.org/html/rfc6902#page-4)

  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://pypi.python.org/pypi/jsonpatch/0.6 exists and seems like its
  being actively developed and it will likely make applying the
  specification much easier to do.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1200476/+subscriptions