I was working with a BOSH manifest that had numerous incorrect keys specified, e.g.:
- name: foo
BADtype: password
and wanted to change BADtype to type using an ops-file (because I did not own the repo the manifest belonged to). However, the only supported way to do this is to use a remove to get rid of the key and its value, and then a replace to add the correct key with the same value. This workflow requires placing the entire value of the incorrect key (which could be large) into the ops-file twice.
I would like to have a operation similar to replace that allows me to change a key in a single invocation without having to include the key's value block as well.
I was working with a BOSH manifest that had numerous incorrect keys specified, e.g.:
and wanted to change
BADtypetotypeusing an ops-file (because I did not own the repo the manifest belonged to). However, the only supported way to do this is to use aremoveto get rid of the key and its value, and then areplaceto add the correct key with the same value. This workflow requires placing the entire value of the incorrect key (which could be large) into the ops-file twice.I would like to have a operation similar to
replacethat allows me to change a key in a single invocation without having to include the key's value block as well.