summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2016-03-28 10:58:13 -0400
committerKenny Woodson <kwoodson@redhat.com>2016-03-28 10:58:13 -0400
commit0961451fe7bc601ffbd3dccfdfb4eb3364a1eb2d (patch)
tree7296a88b330d0314f6b7bd01d2c089f8f165c6c5 /roles
parente9f5909847f41c6a5b8097ae4b140479b044f8a2 (diff)
parent5f8c1b7c8cd2fa198dcd61cbfbb24800778e8e18 (diff)
downloadopenshift-0961451fe7bc601ffbd3dccfdfb4eb3364a1eb2d.tar.gz
openshift-0961451fe7bc601ffbd3dccfdfb4eb3364a1eb2d.tar.bz2
openshift-0961451fe7bc601ffbd3dccfdfb4eb3364a1eb2d.tar.xz
openshift-0961451fe7bc601ffbd3dccfdfb4eb3364a1eb2d.zip
Merge pull request #1669 from kwoodson/fix_yedit
Added error message for yedit when yaml fails to parse.
Diffstat (limited to 'roles')
-rw-r--r--roles/lib_yaml_editor/library/yedit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_yaml_editor/library/yedit.py b/roles/lib_yaml_editor/library/yedit.py
index b75aff109..9b565d0c7 100644
--- a/roles/lib_yaml_editor/library/yedit.py
+++ b/roles/lib_yaml_editor/library/yedit.py
@@ -185,7 +185,7 @@ def main():
rval = yamlfile.get()
if not rval and state != 'present':
module.fail_json(msg='Error opening file [%s]. Verify that the' + \
- ' file exists and that it is has correct permissions.')
+ ' file exists, that it is has correct permissions, and is valid yaml.')
if state == 'list':
module.exit_json(changed=False, results=rval, state="list")