Permalink
Browse files

collect only unique providers

  • Loading branch information...
Claire McQuin
Claire McQuin committed Jan 14, 2014
1 parent 8890c7f commit d1041a994b402f828ae1a3ce6633cc0540e25a75
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/ohai/provides_map.rb
View
@@ -45,6 +45,7 @@ def set_providers_for(plugin, provided_attributes)
end
attrs[:_plugins] ||= []
attrs[:_plugins] << plugin
+ attrs[:_plugins].uniq!
end
end

0 comments on commit d1041a9

Please sign in to comment.