Skip to content

Commit

Permalink
update format
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsver committed Aug 23, 2024
1 parent d7bf449 commit cc8b9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/libraries/update_hosts_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def update_hosts_file
# Prepare the lines for the hosts file
hosts_entries = []
hosts_hash.each do |ip, services|
format_entry = sprintf("%-18s%s", ip, services.join(' '))
format_entry = format('%-18s%s', ip, services.join(' '))
hosts_entries << format_entry unless services.empty?
end

Expand Down

0 comments on commit cc8b9a6

Please sign in to comment.