Fix a typo and change elsif to else

Closes-bug: 1380999

Change-Id: I8d2013fc33e072ee5bdf18447c38cbce1f2230cd
This commit is contained in:
Aleksandr Didenko 2014-09-08 18:55:07 +03:00
parent 203ef31790
commit 2cbaf27df3
1 changed files with 1 additions and 1 deletions

View File

@ -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)