Commit 8433c342 authored by Jaymz Julian's avatar Jaymz Julian
Browse files

make chef16 work

parent e0386e03
......@@ -17,7 +17,11 @@ class Chef
urule = Chef::Resource::UlimitRule.new("#{new_resource.name}:#{name}]", nil)
urule.domain new_resource
urule.action :nothing
urule.instance_eval('anonymous', &block)
begin
urule.instance_eval(&block)
rescue
urule.instance_eval('"anonymous"', &block)
end
unless name
urule.name "ulimit_rule[#{new_resource.name}:#{urule.item}-#{urule.type}-#{urule.value}]"
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment