Created
May 9, 2014 16:54
-
-
Save quantonganh/d5326d2e5eeecc977cdf 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
[DEBUG ] Compiling reactions for tag deploy_master | |
Process Reactor-4: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap | |
self.run() | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/salt/utils/event.py", line 529, in run | |
chunks = self.reactions(data['tag'], data['data'], reactors) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/salt/utils/event.py", line 505, in reactions | |
high.update(self.render_reaction(fn_, tag, data)) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/salt/utils/event.py", line 455, in render_reaction | |
data=data)) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/salt/state.py", line 187, in render_template | |
template, self.rend, self.opts['renderer'], **kwargs) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/salt/template.py", line 69, in compile_template | |
ret = render(input_data, env, sls, **render_kwargs) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/salt/renderers/jinja.py", line 42, in render | |
tmp_data.get('data', 'Unknown render error in jinja renderer') | |
SaltRenderError: Undefined jinja variable; line 378 in template | |
{%- set project_name = data['data']['name'] %} | |
{%- set project_url = data['data']['url'] %} | |
{%- set branch = data['tag'][7:] %} | |
{% if data['id'] == 'MacBook-Pro.local' %} | |
git_pull: | |
cmd.state.single: | |
- tgt: 'MacBook-Pro.local' | |
- arg: | |
- git.latest | |
- name={{ project_url }} | |
- rev={{ branch }} | |
- target={{ pillar[project_name][data['tag']]['target'] }} | |
- user=quanta | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment