Commit 35018ee1 authored by m.pausch's avatar m.pausch
Browse files

Restart firewall only if it is managed

parent 45c5d534
......@@ -105,6 +105,7 @@ if Gem::Requirement.new('>= 12.15').satisfied_by?(Gem::Version.new(Chef::VERSION
end
action :restart do
return unless managed?
nftables_service = lookup_or_create_service('nftables')
nftables_service.run_action(:restart)
end
......
Supports Markdown
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