Skip to content

Commit bbf11a9

Browse files
committed
Remove comment if description is empty
If the description property is an empty string puppet should remove the comment sign (#) alltogether
1 parent aaa2501 commit bbf11a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/oratab/parsed.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
:to_line => proc { |h|
2929
str = "#{h[:name]}:#{h[:home]}:#{h[:atboot]}"
30-
if h[:description] and h[:description] != :absent
30+
if description = h[:description] and description != :absent and !description.empty?
3131
str += " # #{description}"
3232
end
3333
str

0 commit comments

Comments
 (0)