Created
July 6, 2017 10:03
-
-
Save anonymous/5d5e7b42d18ab2a8f4b61625f21d9ddf 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
Data failed to compile:---------- | |
Rendering SLS 'base:salt.minion' failed: Jinja error: coercing to Unicode: need string or buffer, float found | |
/var/cache/salt/minion/files/base/salt/map.jinja(44): | |
--- | |
[...]Setup variable using grains['os_family'] based logic, only add key:values herethat differ from whats in defaults.yaml | |
##} | |
{% set osrelease = salt['grains.get']('osrelease') %} | |
{% set salt_release = salt['pillar.get']('salt:release', 'latest') %} | |
{% set os_family_map = salt['grains.filter_by']({ <====================== | |
'Debian': { 'pkgrepo': 'deb http://repo.saltstack.com/apt/' + | |
salt['grains.get']('os')|lower + '/' + salt['grains.get']('osmajorrelease', osrelease) + | |
'/amd64/' + salt_release + ' ' + salt['grains.get']('oscodename') + ' main', | |
'key_url': 'https://repo.saltstack.com/apt/' + salt['grains.get']('os')|lower + '/' + salt['grains.get']('osmajorrelease', osrelease) + '/amd64/' + salt_release + '/SALTSTACK-GPG-KEY.pub', | |
'libgit2': 'libgit2-22', | |
[...]---Traceback (most recent call last): | |
File "/usr/lib/python2.7/site-packages/salt/utils/templates.py", line 368, in render_jinja_tmpl | |
output = template.render(**decoded_context) | |
File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render | |
return self.environment.handle_exception(exc_info, True) | |
File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception | |
reraise(exc_type, exc_value, tb) File "<template>", line 1, in top-level template code | |
File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 1013, in make_module | |
return TemplateModule(self, self.new_context(vars, shared, locals)) | |
File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 1070, in __init__ | |
self._body_stream = list(template.root_render_func(context)) | |
File "/var/cache/salt/minion/files/base/salt/map.jinja", line 44, in top-level template code | |
{% set os_family_map = salt['grains.filter_by']({ | |
TypeError: coercing to Unicode: need string or buffer, float found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment