Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Whyrun not supported for custom resources #4537
If I create a custom resource using the new approach with the action defined in the resources directory, whyrun is not supported. E.g.
Even if I create a provider with a whyrun_supported? method, this does not work. I have to go back to the old split into resources and providers to get whyrun support.
That's a bug you can do this though:
resource_name :hi provides :hi action :create do file '/tmp/hi' end action_class do def whyrun_supported? true end end
Output without the hack looks like:
Output after my workaround:
I have tried this workaround without sucess in addition to the new
With the same hi resource, the output of chef (in non-whyrun) is:
I think this is a use-case that would need to be supported by a fix for this issue.