瀏覽代碼

Merge pull request #1669 from kwoodson/fix_yedit

Added error message for yedit when yaml fails to parse.
Kenny Woodson 9 年之前
父節點
當前提交
0961451fe7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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")