saltstack/salt — Issue #679: state.file.recurse fails on (broken) symlinks
Author: pille
Created: 2012-02-10 14:00:22+00:00
State: open

i've got a direcrtory just containing symlinks that i want to sync to the minion.
they are broken on the master-fileserver, because their targets exist on the clients, only.
during the state.highstate it bails out:

File "/usr/lib/pymodules/python2.6/salt/minion.py", line 210, in _thread_return
ret['return'] = self.functions[data['fun']](*data['arg'])
File "/usr/lib/pymodules/python2.6/salt/modules/state.py", line 79, in highstate
return st_.call_highstate()
File "/usr/lib/pymodules/python2.6/salt/state.py", line 1000, in call_highstate
return self.state.call_high(high)
File "/usr/lib/pymodules/python2.6/salt/state.py", line 695, in call_high
ret = self.format_verbosity(self.call_chunks(chunks))
File "/usr/lib/pymodules/python2.6/salt/state.py", line 531, in call_chunks
running = self.call_chunk(low, running, chunks)
File "/usr/lib/pymodules/python2.6/salt/state.py", line 672, in call_chunk
running[tag] = self.call(low)
File "/usr/lib/pymodules/python2.6/salt/state.py", line 515, in call
ret = self.states[cdata['full']](*cdata['args'])
File "/usr/lib/pymodules/python2.6/salt/states/file.py", line 859, in recurse
source[7:]
File "/usr/lib/python2.6/posixpath.py", line 400, in relpath
raise ValueError("no path specified")
ValueError: no path specified

i know, that i should use state.file.symlink, but i don't want to do it for every single link at the moment.
however - this failure should be handled.