Skip to content

Instantly share code, notes, and snippets.

Created October 3, 2016 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5226a355bf97da44a01caa0e804e93b3 to your computer and use it in GitHub Desktop.
Save anonymous/5226a355bf97da44a01caa0e804e93b3 to your computer and use it in GitHub Desktop.
2016-10-03 07:25:55,545 [salt.utils.schedule][ERROR ][9353] Unhandled exception running state.sls
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/utils/schedule.py", line 739, in handle_func
kwargs['__pub_{0}'.format(key)] = val
TypeError: list indices must be integers, not str
2016-10-03 07:25:55,567 [salt.utils.schedule][ERROR ][9357] Unhandled exception running state.sls
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/utils/schedule.py", line 739, in handle_func
kwargs['__pub_{0}'.format(key)] = val
TypeError: list indices must be integers, not str
2016-10-03 07:25:55,587 [salt.utils.schedule][ERROR ][9360] Unhandled exception running state.sls
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/utils/schedule.py", line 739, in handle_func
kwargs['__pub_{0}'.format(key)] = val
TypeError: list indices must be integers, not str
2016-10-03 07:25:55,599 [salt.utils.schedule][ERROR ][9364] Unhandled exception running state.sls
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/utils/schedule.py", line 739, in handle_func
kwargs['__pub_{0}'.format(key)] = val
TypeError: list indices must be integers, not str
top.sls
# Match by site and managed nodes
base:
'G@site:site1 and G@managed-node:True':
- match: compound
- site1.schedules
- site1.users
- site1.groups
schedules.sls
include:
- site1.schedules.hourly
- site1.schedules.daily
- site1.schedules.weekly
- site1.schedules.monthly
hourly.sls
scheduleHourly:
schedule.present:
- function: state.sls
- minutes: 60
- splay: 1800
- enabled: True
- job_args:
- site1.users
- job_kwargs:
- test: False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment