Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sls renderer erroring when attempting to use wempy #4669

Closed
benLogN opened this issue Apr 30, 2013 · 4 comments
Closed

sls renderer erroring when attempting to use wempy #4669

benLogN opened this issue Apr 30, 2013 · 4 comments
Milestone

Comments

@benLogN
Copy link

benLogN commented Apr 30, 2013

When attempting to render any sls templates with wempy, the following stacktrace is dumped:

    Data failed to compile:
----------
    Rendering SLS idol.generic_content failed, render error:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/salt/state.py", line 1779, in render_state
    fn_, self.state.rend, self.state.opts['renderer'], env, sls, rendered_sls=mods)
  File "/usr/lib/python2.6/site-packages/salt/template.py", line 61, in compile_template
    ret = render(input_data, env, sls, **render_kwargs)
  File "/usr/lib/python2.6/site-packages/salt/renderers/wempy.py", line 15, in render
    tmp_data = salt.utils.templates.wempy(template_file, to_str=True,
AttributeError: 'module' object has no attribute 'wempy'

'module' object has no attribute 'wempy'

This issue is not present in file.managed/file.recurse template calls, but is present with the following hash-bang lines on SLS templates (or if any of these are chosen as the default renderer in /etc/salt/master):

  • #!yaml_wempy
  • #!json_wempy
  • #!wempy | yaml
  • #!wempy | json
  • #!wempy
@thatch45
Copy link
Member

thatch45 commented May 1, 2013

Thanks, this should not happen, we will look into it!

@UtahDave
Copy link
Contributor

UtahDave commented May 9, 2013

@kjkuan Hey, I think we had a similar issue a while back. Does this look familiar?

@kjkuan
Copy link
Contributor

kjkuan commented May 15, 2013

sorry, I've been away from salt. This appears to be the same issue caused by the refactoring a long time ago(ie, someone decided to change lower case name to upper case name). So, I'm guessing that simply change tmp_data = salt.utils.templates.wempy(template_file, to_str=True, to tmp_data = salt.utils.templates.WEMPY(template_file, to_str=True, will fix the problem.

@thatch45
Copy link
Member

Thanks @kjkuan ! Good to see you in here!

thatch45 added a commit that referenced this issue May 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants