You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bugbroken, incorrect, or confusing behaviorCorerelates to code central or existential to SaltP4Priority 4RenderersSalt-SSHseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
I am trying to use the delimiter option of grains.get. It works in salt master mode, but fails in salt-ssh mode. The reason I need the delimiter option is part of the grain path is the mac address of the instance, and it contains colons.
@edgan i am able to replicate this behavior just using that same jinja logic in a state file as well so I don't think its related to just the top file.
Running state.sls works just fine via a normal master/minion setup. But whne using salt-ssh I get the same error:
---
ch3ll-test2:
- Rendering SLS 'base:issues.34345' failed: Jinja error: get() got an unexpected keyword argument 'delimiter'
Traceback (most recent call last):
File "/home/ch3ll/git/salt/salt/utils/templates.py", line 366, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib64/python2.7/site-packages/jinja2/environment.py", line 989, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib64/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "<template>", line 1, in top-level template code
TypeError: get() got an unexpected keyword argument 'delimiter'
; line 1
---
{% if salt['grains.get']('ec2|network|interfaces|macs|' ~ salt['grains.get']('ec2|mac', delimiter='|') ~ '|vpc_id', delimiter='|') == 'vpc-a3fbca73' %} {% endif %} <======================
Traceback (most recent call last):
File "/home/ch3ll/git/salt/salt/utils/templates.py", line 366, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib64/python2.7/site-packages/jinja2/environment.py", line 989, in render
[...]
---
Looks like we definitely need to get this fixed up.
* upstream/develop: (32 commits)
Update 2016.3.2 release notes (saltstack#34850)
Skip GCE unit tests - causes test suite to hang
Update release notes for 2016.3.2 (saltstack#34848)
Fix comment in master config, prevents the service from starting
Fix Salt failure after merge of saltstack#34683
drop parsing of vdevs, error passthrough from zpool cli
eliminate hardcoded vdev type from zpool state
update the state wrapper to include show_low_sls
salt.states.zpool - work with updates exec module
salt.module.zpool - fix bug with properties on/off being parsed as true/false
Check if a valid value is passed to unlyif/unless
Fixsaltstack#34345
salt.modules.zpool - drop vdev types to make it more future proof, fallback to zpool cli error messages
keep this beacon from stack tracing at the loader (saltstack#34825)
Skip mysql state test if mysqladmin is not available
Lintfix PEP8: E262
salt/state.py: set `chunk['order'] = 0' with `order: first'; fixessaltstack#24744
Lint
Document master setting
Set up dynamic config
...
Bugbroken, incorrect, or confusing behaviorCorerelates to code central or existential to SaltP4Priority 4RenderersSalt-SSHseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
I am trying to use the delimiter option of grains.get. It works in salt master mode, but fails in salt-ssh mode. The reason I need the delimiter option is part of the grain path is the mac address of the instance, and it contains colons.
top.sls:
Error:
The text was updated successfully, but these errors were encountered: