Created
June 29, 2015 09:22
-
-
Save silenius/0cca7908dad5b83737ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jcigar@dev:/usr/local/etc/salt/states/_modules/ > ll | |
total 8 | |
-rw-r--r-- 1 root wheel 1350 Jun 29 11:03 _pgsql.py | |
drwxr-xr-x 2 root wheel 512 Jun 29 11:19 bbpf | |
jcigar@dev:/usr/local/etc/salt/states/_modules/ > sudo rm _pgsql.py | |
Password: | |
jcigar@dev:/usr/local/etc/salt/states/_modules/ > cd bbpf | |
jcigar@dev:/usr/local/etc/salt/states/_modules/bbpf/ > ll | |
total 12 | |
-rw-r--r-- 1 root wheel 35 Jun 29 11:19 __init__.py | |
-rw-r--r-- 1 root wheel 1350 Jun 29 11:15 pgsql.py | |
-rw-r--r-- 1 root wheel 3792 Jun 29 11:16 webapp.py | |
jcigar@dev:/usr/local/etc/salt/states/_modules/bbpf/ > cat __init__.py | |
import salt | |
from .webapp import * | |
jcigar@dev:/usr/local/etc/salt/states/_modules/bbpf/ > salt sandbox bbpf.webapp_config fada | |
sandbox: | |
The minion function caused an exception: Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/site-packages/salt/minion.py", line 1146, in _thread_return | |
return_data = func(*args, **kwargs) | |
File "/var/cache/salt/minion/extmods/modules/bbpf/webapp.py", line 100, in webapp_config | |
cfg = _dict(__salt__['pillar.get']('webapps:items:{}'.format(name))) | |
NameError: global name '__salt__' is not defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment