saltstack/salt — Issue #345: Top file syntax check for environment availability and YAML * issues
Author: thatch45
Created: 2011-12-11 06:46:18+00:00
State: open

Traceback (most recent call last):
File "/usr/bin/salt-call", line 18, in
main()
File "/usr/bin/salt-call", line 15, in main
client.run()
File "/usr/lib/python2.7/site-packages/salt/cli/__init__.py", line 566, in run
caller.run()
File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 72, in run
ret = self.call()
File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 35, in call
*self.opts['arg']
File "/usr/lib/python2.7/site-packages/salt/modules/state.py", line 75, in highstate
return st_.call_highstate()
File "/usr/lib/python2.7/site-packages/salt/state.py", line 729, in call_highstate
matches = self.top_matches(top)
File "/usr/lib/python2.7/site-packages/salt/state.py", line 624, in top_matches
for match, data in body.items():
AttributeError: 'list' object has no attribute 'items'

Thrown when a top file looked like this:

base:
'*':
- webserver
- elsleiman
- mysql
arch00[1,2]*:
- mysql.managment
arch00[3,4]*:
- mysql.storage

This goes into top file validation, we know this is still weak.