Skip to content

Commit

Permalink
Merge pull request #321 from bmjen/empty-concats
Browse files Browse the repository at this point in the history
fix defaulted force behavior
  • Loading branch information
cyberious committed May 29, 2015
2 parents 6264171 + 64b9288 commit ddcf87f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/puppet/type/concat_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ def generate
end
def eval_generate
catalog.resource("File[#{self[:path]}]")[:content] = should_content
content = should_content
if !content.nil? and !content.empty?
catalog.resource("File[#{self[:path]}]")[:content] = content
end
[]
end
end

0 comments on commit ddcf87f

Please sign in to comment.