Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### initial pillar file :
- environment: office
- interface: 'nobond'
- groups_software: ['admin']
- role:
- - pillartest1
- # if i use
- include:
- - minions.pillartest
- # => it works, BUT IF I USE:
- include:
- - minions.pillartest:
- key: role
- #=> it doesn't work and i have an error:
- 2013-12-09 16:38:09,233 [salt.loader ][CRITICAL] Failed to load grains defined in grain file opts.opts in function <function opts at 0x20f5578>, error:
- Traceback (most recent call last):
- File "/usr/lib/python2.6/site-packages/salt/loader.py", line 908, in gen_grains
- ret = fun()
- File "/usr/lib/python2.6/site-packages/salt/grains/opts.py", line 12, in opts
- if __opts__.get('grain_opts', False) or __pillar__.get('grain_opts', False):
- AttributeError: 'str' object has no attribute 'get'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement