Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow replacing updating keys #13

Open
tjvman opened this issue Apr 30, 2018 · 1 comment
Open

Allow replacing updating keys #13

tjvman opened this issue Apr 30, 2018 · 1 comment

Comments

@tjvman
Copy link

tjvman commented Apr 30, 2018

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.

@bgandon
Copy link

bgandon commented May 13, 2018

Just wondering: are you sure you need to remove the BADtype key? Maybe just adding the correct type: password key and value is sufficient for the deployment variables to be properly declared?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants