saltstack/salt — Issue #515: state.highstate causing traceback
Author: syphernl
Created: 2012-01-15 10:15:45+00:00
State: open

When running ```state.highstate``` on the latest Git revision this fails because it is missing an argument:

```
11:14:14,921 [salt.minion ][WARNING ] The minion function caused an exception: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 210, in _thread_return
ret['return'] = self.functions[data['fun']](*data['arg'])
File "/usr/lib/python2.7/dist-packages/salt/modules/state.py", line 79, in highstate
return st_.call_highstate()
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 988, in call_highstate
self.load_dynamic(matches)
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 884, in load_dynamic
self.state.functions['saltutil.sync_all'](matches.keys())
File "/usr/lib/python2.7/dist-packages/salt/modules/saltutil.py", line 135, in sync_all
ret.append(sync_modules(env))
File "/usr/lib/python2.7/dist-packages/salt/modules/saltutil.py", line 66, in sync_modules
return _sync('modules', env)
File "/usr/lib/python2.7/dist-packages/salt/modules/saltutil.py", line 45, in _sync
open(os.path.join(__opts__['cachedir'], '.module_refresh'), 'w+').write()
TypeError: function takes exactly 1 argument (0 given)
```