I have a grains key contains a list of values:
# salt *test_vm* grains.get roles
test_vm_0:
- openstack_vm
- test_server
The following code got rendering syntax error, it cannot handle the
list of values "- TypeError: unhashable type: 'list'"
{% set test_config = salt['grains.filter_by']({
['- openstack_vm', '- test_server'] : {
'config_source' = 'salt://config/config.sh'
},
}, grain='roles') %}
What is the workaround to fix it?
Thank you.
- j
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.