Shef fails to run if I use a run_action


#1

I’ve found a need to use run_action in one of my cookbook recipes to ensure
that a particular file is created before chef moves on. It seems this
breaks the ability to use shef, which sucks, because I use it all of the
time for debugging, etc.

This is the code that shef error out on.

e = template “/etc/sysconfig/exlsysteminfo” do

source “exlsysteminfo.erb”

mode “0644”

action :nothing

variables(

        :cnames *=>* `host #{node*.*ipaddress} | grep -v 'NXDOMAIN' |

awk ‘{print $5}’`*.*split

        )

end

e*.*run_action(:create)

I have a gist of this code and error messages from shef versions 0.9.12,
0.9.14, 0.9.16. I noticed 0.9.12 has a more informative error message than
newer releases and helped me track the problem down to this section of code.

Here is the gist: https://gist.github.com/54e6f39586219aac0307

Any idea what I can do to get shef to work again?


John Alberts