We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a980fc + ec6cd56 commit 0001566Copy full SHA for 0001566
lib/puppet/type/file_line.rb
@@ -104,8 +104,16 @@
104
' This is also takes a regex.'
105
end
106
107
- newparam(:line) do
+ # The line property never changes; the type only ever performs a create() or
108
+ # destroy(). line is a property in order to allow it to correctly handle
109
+ # Sensitive type values. Because it is a property which will never change,
110
+ # it should never be considered out of sync.
111
+ newproperty(:line) do
112
desc 'The line to be appended to the file or used to replace matches found by the match attribute.'
113
+
114
+ def retrieve
115
+ @resource[:line]
116
+ end
117
118
119
newparam(:path) do
0 commit comments