telmich/cdist — pull request #321 by asteven (2014-03-11 20:12:48+00:00)
Title: __link creates link in subdirectory, if link exists and points to a directory

__link /usr/share/jetty/webapps \
--source "/home/$user/app" \
--type symbolic

After cdist run:

[14:58:24] end-001-staging:/usr/share/jetty# ls -lh /usr/share/jetty/webapps
lrwxrwxrwx 1 root root 22 Apr 25 2012 /usr/share/jetty/webapps -> /var/lib/jetty/webapps

[14:58:27] end-001-staging:/usr/share/jetty# ls -lh /usr/share/jetty/webapps/app
lrwxrwxrwx 1 root root 13 Mar 11 14:52 /usr/share/jetty/webapps/app -> /home/app/app