# File lib/puppet/provider/macauthorization/macauthorization.rb, line 157
157:     def flush_right
158:         # first we re-read the right just to make sure we're in sync for
159:         # values that weren't specified in the manifest. As we're supplying
160:         # the whole plist when specifying the right it seems safest to be
161:         # paranoid given the low cost of quering the db once more.
162:         cmds = []
163:         cmds << :security << "authorizationdb" << "read" << resource[:name]
164:         output = execute(cmds, :combine => false)
165:         current_values = Plist::parse_xml(output)
166:         if current_values.nil?
167:             current_values = {}
168:         end
169:         specified_values = convert_plist_to_native_attributes(@property_hash)
170: 
171:         # take the current values, merge the specified values to obtain a
172:         # complete description of the new values.
173:         new_values = current_values.merge(specified_values)
174:         set_right(resource[:name], new_values)
175:     end