Skip to content

Commit

Permalink
Pass lint
Browse files Browse the repository at this point in the history
  • Loading branch information
manegron committed Oct 19, 2024
1 parent ce3975f commit 42e8c16
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions resources/recipes/prepare_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,13 @@
memory_services(sysmem_total)

# Build service list for rbcli
services = node['redborder']['services'] || []
services = node['redborder']['services'] || []
systemd_services = node['redborder']['systemdservices'] || []
service_enablement = {}

systemd_services.each do |service_name, systemd_name|
service_enablement[systemd_name.first] = services[service_name]
end

Chef::Log.info("Saving services enablement into /etc/redborder/services.json")
File.open("/etc/redborder/services.json", "w") do |file|
file.write(JSON.pretty_generate(service_enablement))
end
Chef::Log.info('Saving services enablement into /etc/redborder/services.json')
File.write('/etc/redborder/services.json', JSON.pretty_generate(service_enablement))

0 comments on commit 42e8c16

Please sign in to comment.