Skip to content

Instantly share code, notes, and snippets.

@quantonganh
Created December 13, 2013 18:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save quantonganh/7948532 to your computer and use it in GitHub Desktop.
Salt - TypeError: argument of type 'StrictUndefined' is not iterable
Data failed to compile:
----------
Rendering SLS carbon failed, render error: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/salt/utils/templates.py", line 79, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/usr/lib/pymodules/python2.7/salt/utils/templates.py", line 157, in render_jinja_tmpl
output = jinja_env.from_string(tmplstr).render(**unicode_context)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "<template>", line 61, in top-level template code
TypeError: argument of type 'StrictUndefined' is not iterable
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1964, in render_state
rendered_sls=mods
File "/usr/lib/pymodules/python2.7/salt/template.py", line 69, in compile_template
ret = render(input_data, env, sls, **render_kwargs)
File "/usr/lib/pymodules/python2.7/salt/renderers/jinja.py", line 42, in render
tmp_data.get('data', 'Unknown render error in jinja renderer')
SaltRenderError: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/salt/utils/templates.py", line 79, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/usr/lib/pymodules/python2.7/salt/utils/templates.py", line 157, in render_jinja_tmpl
output = jinja_env.from_string(tmplstr).render(**unicode_context)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "<template>", line 61, in top-level template code
TypeError: argument of type 'StrictUndefined' is not iterable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment