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

SaltRenderError: Jinja variable 'dict object' has no attribute 'protocol' #2

Open
michaelkuty opened this issue Jun 10, 2016 · 1 comment
Assignees

Comments

@michaelkuty
Copy link
Member

slave:
    ----------
    enabled:
        True
    master:
        ----------
        host:
            localhost
        port:
            8080
    pkgs:
        False
    sudo:
        False
    user:
        ----------
        name:
            admin
        password:
            asdasd645

----------
          ID: /etc/default/jenkins-slave
    Function: file.managed
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1703, in call
                  **cdata['kwargs'])
                File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1649, in wrapper
                  return f(*args, **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/states/file.py", line 1635, in managed
                  **kwargs
                File "/usr/lib/python2.7/dist-packages/salt/modules/file.py", line 3940, in check_managed_changes
                  **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/modules/file.py", line 3610, in get_managed
                  **kwargs)
                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 'dict object' has no attribute 'protocol' 
@Tokix
Copy link

Tokix commented Dec 2, 2016

Just ran into a similar issue you need to add the attribute protocol in your jenkins.sls pillar file like so i suspect (you can handle similar errors in the same way):

jenkins:
slave:
master:
host: jenkins.example.com
port: 80
protocol: http

Taken from main page https://github.com/tcpcloud/salt-formula-jenkins/ under "Agent (former slave)"

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

3 participants