Browse Source

Merge pull request #1669 from kwoodson/fix_yedit

Added error message for yedit when yaml fails to parse.
Kenny Woodson 9 years ago
parent
commit
0961451fe7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/lib_yaml_editor/library/yedit.py

+ 1 - 1
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")