Skip to content

Instantly share code, notes, and snippets.

@kylegato
Created July 17, 2013 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylegato/70f86395bc4cdd587dd4 to your computer and use it in GitHub Desktop.
Save kylegato/70f86395bc4cdd587dd4 to your computer and use it in GitHub Desktop.
State: - file
Name: /usr/local/etc/php/extensions.ini
Function: managed
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/salt/state.py", line 1201, in call
File "/usr/local/lib/python2.7/site-packages/salt/states/file.py", line 854, in managed
contents)
File "/usr/local/lib/python2.7/site-packages/salt/modules/file.py", line 1554, in manage_file
if not salt.utils.istextfile(sfn) \
File "/usr/local/lib/python2.7/site-packages/salt/utils/__init__.py", line 717, in istextfile
by reading a single block of bytes from the file.
AttributeError: 'str' object has no attribute 'read'
Changes:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment