Преглед на файлове

Fixed error message to add valid yaml

Kenny Woodson преди 9 години
родител
ревизия
5f8c1b7c8c
променени са 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")