lib/ohai/plugins/shard.rb in ohai-16.6.5 vs lib/ohai/plugins/shard.rb in ohai-16.7.18
- old
+ new
@@ -16,10 +16,10 @@
# limitations under the License.
#
Ohai.plugin(:ShardSeed) do
depends "hostname", "dmi", "machine_id", "machinename", "fips", "hardware", "kernel"
- provides "shard_seed"
+ provides "shard_seed".freeze
def get_dmi_property(dmi, thing)
%w{system base_board chassis}.each do |section|
if dmi[section] && dmi[section][thing] && !dmi[section][thing].strip.empty?
return dmi[section][thing]