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 committed Jun 26, 2018
1 parent 25dff54 commit 2ba6255
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 @@ -31,7 +31,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 2ba6255

Please sign in to comment.