Skip to content

Commit

Permalink
Fix wrong variable name
Browse files Browse the repository at this point in the history
This variable has the wrong name, which has unexpected side effects.
  • Loading branch information
jovandeginste authored and jfroche committed Jan 23, 2020
1 parent a90cb5c commit 58ac81a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/firewalld_ipset/firewall_cmd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def add_entries_from_file(entries)
execute_firewall_cmd(["--ipset=#{@resource[:name]}", "--add-entries-from-file=#{f.path}"], nil)
end

def remove_entries_from_file(entry)
def remove_entries_from_file(entries)
f = Tempfile.new('ipset')
entries.each { |e| f.write(e+"\n") }
f.close
Expand Down

0 comments on commit 58ac81a

Please sign in to comment.