From 5f8c1b7c8cd2fa198dcd61cbfbb24800778e8e18 Mon Sep 17 00:00:00 2001
From: Kenny Woodson <kwoodson@redhat.com>
Date: Mon, 28 Mar 2016 10:57:02 -0400
Subject: Fixed error message to add valid yaml

---
 roles/lib_yaml_editor/library/yedit.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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")
-- 
cgit v1.2.3