GitLab upgraded to 13.9.1-ee.0 - changelog: https://gitlab.com/gitlab-org/gitlab/blob/master/CHANGELOG-EE.md

Commit 350e4bc2 authored by Sean Porter's avatar Sean Porter

use run_context attr accessor

parent 9a054f94
......@@ -16,12 +16,12 @@ class Chef
node.run_state[:dpkg_autostart_disabled] ||= []
node.run_state[:dpkg_autostart_disabled].push(name) unless val
begin
node.run_context.resource_collection.lookup('dpkg_autostart[bin_file]')
run_context.resource_collection.lookup('dpkg_autostart[bin_file]')
true
rescue Chef::Exceptions::ResourceNotFound
bin = Chef::Resource::DpkgAutostart.new('bin_file', node.run_context)
bin = Chef::Resource::DpkgAutostart.new('bin_file', run_context)
bin.action :create
node.run_context.resource_collection.all_resources.unshift(bin)
run_context.resource_collection.all_resources.unshift(bin)
end
end
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