summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils/src/ansible/yedit.py
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-02-14 09:00:10 -0800
committerGitHub <noreply@github.com>2018-02-14 09:00:10 -0800
commit75290a8e32d1658933b59957f8406e2379710ec2 (patch)
tree5895954b968f049cebeb4ec7784146a9aac14e7c /roles/lib_utils/src/ansible/yedit.py
parent07614f8b8d4cd59941d168c4f14ebed49ec8371e (diff)
parent42fd5866e3eeb878f7d890005bf69365fade5482 (diff)
downloadopenshift-75290a8e32d1658933b59957f8406e2379710ec2.tar.gz
openshift-75290a8e32d1658933b59957f8406e2379710ec2.tar.bz2
openshift-75290a8e32d1658933b59957f8406e2379710ec2.tar.xz
openshift-75290a8e32d1658933b59957f8406e2379710ec2.zip
Merge pull request #7140 from kwoodson/yedit_json_files
Automatic merge from submit-queue. Adding ability to yedit json files. Adding feature of modifying json to yedit. Generated files makes this appear large. There are approximately 8 real lines of change.
Diffstat (limited to 'roles/lib_utils/src/ansible/yedit.py')
-rw-r--r--roles/lib_utils/src/ansible/yedit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_utils/src/ansible/yedit.py b/roles/lib_utils/src/ansible/yedit.py
index c4b818cf1..c2ae08654 100644
--- a/roles/lib_utils/src/ansible/yedit.py
+++ b/roles/lib_utils/src/ansible/yedit.py
@@ -13,7 +13,7 @@ def main():
debug=dict(default=False, type='bool'),
src=dict(default=None, type='str'),
content=dict(default=None),
- content_type=dict(default='dict', choices=['dict']),
+ content_type=dict(default='yaml', choices=['yaml', 'json']),
key=dict(default='', type='str'),
value=dict(),
value_type=dict(default='', type='str'),