-
-
Save anonymous/7328708ef1b317e9a725d42b6313efb7 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
2016-06-03 14:13:15,097 [salt.utils.event ][DEBUG ][10072] Sending event - data = {'_stamp': '2016-06-03T20:13:15.097102', 'tag': 'salt/beacon/NOPE/service/', 'data': {'RasMan': {'running': True}, 'id': 'NOPE'}} | |
2016-06-03 14:13:15,109 [salt.utils.reactor][DEBUG ][10058] Gathering reactors for tag salt/beacon/NOPE/service/ | |
2016-06-03 14:13:15,112 [salt.utils.reactor][DEBUG ][10058] Compiling reactions for tag salt/beacon/NOPE/service/ | |
2016-06-03 14:13:15,115 [salt.template ][DEBUG ][10058] compile template: /srv/reactor/travice.sls | |
2016-06-03 14:13:15,119 [salt.utils.jinja ][DEBUG ][10058] Jinja search path: '['/var/cache/salt/master/files/base']' | |
2016-06-03 14:13:15,133 [salt.utils.templates][ERROR ][10058] Rendering exception occurred: Jinja variable 'service' is undefined | |
2016-06-03 14:13:15,136 [salt.utils.reactor][ERROR ][10058] Failed to render "/srv/reactor/travice.sls": | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/salt/utils/reactor.py", line 68, in render_reaction | |
data=data) | |
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 302, in render_template | |
template, self.rend, self.opts['renderer'], **kwargs) | |
File "/usr/lib/python2.7/dist-packages/salt/template.py", line 95, in compile_template | |
ret = render(input_data, saltenv, sls, **render_kwargs) | |
File "/usr/lib/python2.7/dist-packages/salt/renderers/jinja.py", line 333, in render | |
**kws) | |
File "/usr/lib/python2.7/dist-packages/salt/utils/templates.py", line 178, in render_tmpl | |
output = render_str(tmplstr, context, tmplpath) | |
File "/usr/lib/python2.7/dist-packages/salt/utils/templates.py", line 384, in render_jinja_tmpl | |
buf=tmplstr) | |
SaltRenderError: Jinja variable 'service' is undefined | |
2016-06-03 14:13:40,103 [salt.utils.event ][DEBUG ][10074] Sending event - data = {'_stamp': '2016-06-03T20:13:40.103036', 'tag': 'salt/beacon/NOPE/service/', 'data': {'RasMan': {'running': True}, 'id': 'NOPE'}} | |
2016-06-03 14:13:40,111 [salt.utils.reactor][DEBUG ][10058] Gathering reactors for tag salt/beacon/NOPE/service/ | |
2016-06-03 14:13:40,115 [salt.utils.reactor][DEBUG ][10058] Compiling reactions for tag salt/beacon/NOPE/service/ | |
2016-06-03 14:13:40,119 [salt.template ][DEBUG ][10058] compile template: /srv/reactor/travice.sls | |
2016-06-03 14:13:40,123 [salt.utils.jinja ][DEBUG ][10058] Jinja search path: '['/var/cache/salt/master/files/base']' | |
2016-06-03 14:13:40,137 [salt.utils.templates][ERROR ][10058] Rendering exception occurred: Jinja variable 'service' is undefined | |
2016-06-03 14:13:40,140 [salt.utils.reactor][ERROR ][10058] Failed to render "/srv/reactor/travice.sls": | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/salt/utils/reactor.py", line 68, in render_reaction | |
data=data) | |
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 302, in render_template | |
template, self.rend, self.opts['renderer'], **kwargs) | |
File "/usr/lib/python2.7/dist-packages/salt/template.py", line 95, in compile_template | |
ret = render(input_data, saltenv, sls, **render_kwargs) | |
File "/usr/lib/python2.7/dist-packages/salt/renderers/jinja.py", line 333, in render | |
**kws) | |
File "/usr/lib/python2.7/dist-packages/salt/utils/templates.py", line 178, in render_tmpl | |
output = render_str(tmplstr, context, tmplpath) | |
File "/usr/lib/python2.7/dist-packages/salt/utils/templates.py", line 384, in render_jinja_tmpl | |
buf=tmplstr) | |
SaltRenderError: Jinja variable 'service' is undefined |
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
{%- for item in data['data']: %} | |
{%- if item != 'id': %} | |
{%- set service = item %} | |
{%- endif %} | |
{%- endfor %} | |
{% if data['data'][service]['running'] == false %} | |
These_things: | |
local.state.apply: | |
- tgt: {{data['data']['id']}} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment