Fix a typo and change elsif to else
Closes-bug: 1380999 Change-Id: I8d2013fc33e072ee5bdf18447c38cbce1f2230cd
This commit is contained in:
parent
203ef31790
commit
2cbaf27df3
|
@ -40,7 +40,7 @@ Puppet::Type.type(:file_line).provide(:ruby) do
|
|||
end
|
||||
if (match_count == 0) and resource[:after]
|
||||
handle_create_with_after
|
||||
elsif
|
||||
else
|
||||
File.open(resource[:path], 'w') do |fh|
|
||||
lines.each do |l|
|
||||
fh.puts(regex.match(l) ? resource[:line] : l)
|
||||
|
|
Loading…
Reference in New Issue