Skip to content

(MODULES-5113) Make line support Sensitive #786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/puppet/type/file_line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,16 @@
' This is also takes a regex.'
end

newparam(:line) do
# The line property never changes; the type only ever performs a create() or
# destroy(). line is a property in order to allow it to correctly handle
# Sensitive type values. Because it is a property which will never change,
# it should never be considered out of sync.
newproperty(:line) do
desc 'The line to be appended to the file or used to replace matches found by the match attribute.'

def retrieve
@resource[:line]
end
end

newparam(:path) do
Expand Down