Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def compare_user
!![ :uid, :gid, :comment, :home, :shell, :password ].reject do |check_attrib|
@new_resource.send(check_attrib).nil?
end.find do |user_attrib|
Chef::Log.debug("#{@new_resource}: new: #{@new_resource.send(user_attrib)} current: #{@current_resource.send(user_attrib)}")
@new_resource.send(user_attrib) != @current_resource.send(user_attrib)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.