Skip to content

Instantly share code, notes, and snippets.

@cachedout
Created November 6, 2013 23:55
Show Gist options
  • Save cachedout/7346441 to your computer and use it in GitHub Desktop.
Save cachedout/7346441 to your computer and use it in GitHub Desktop.
precise64:
----------
State: - file
Name: /tmp/f/g/foo.txt
Function: managed
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/salt_mount/salt/state.py", line 1265, in call
# state call.
File "/salt_mount/salt/states/file.py", line 1135, in managed
__env__
NameError: global name '__env__' is not defined
Changes:
@quantonganh
Copy link

How did you solve this error? I'm using 2014.1.10 and got the same:

    Function: uwsgi.available
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/pymodules/python2.7/salt/state.py", line 1379, in call
                  **cdata['kwargs'])
                File "/var/cache/salt/minion/extmods/states/uwsgi.py", line 189, in available
                  ret.update(file.managed(filename, **kwargs))
                File "/usr/lib/pymodules/python2.7/salt/states/file.py", line 1254, in managed
                  __env__
              NameError: global name '__env__' is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment