summaryrefslogtreecommitdiffstats
path: root/lib/puppet/indirector
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2011-03-09 12:55:52 -0800
committerNick Lewis <nick@puppetlabs.com>2011-03-09 12:55:52 -0800
commit531e25836e1313cd508ab8394e16cf438a62ac7b (patch)
treeab39e3be5aee2005d599bd550e10fe0b2dcc3145 /lib/puppet/indirector
parent3489412a03fec009bc42222f449077e6f14998a4 (diff)
downloadpuppet-531e25836e1313cd508ab8394e16cf438a62ac7b.tar.gz
puppet-531e25836e1313cd508ab8394e16cf438a62ac7b.tar.xz
puppet-531e25836e1313cd508ab8394e16cf438a62ac7b.zip
maint: Remove serialization of InventoryFact values
This is not necessary because fact values are always strings, and it wasn't doing the unnecessary job it was expected to do anyway.
Diffstat (limited to 'lib/puppet/indirector')
-rw-r--r--lib/puppet/indirector/facts/inventory_active_record.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/puppet/indirector/facts/inventory_active_record.rb b/lib/puppet/indirector/facts/inventory_active_record.rb
index 2c2597f81..89edaf332 100644
--- a/lib/puppet/indirector/facts/inventory_active_record.rb
+++ b/lib/puppet/indirector/facts/inventory_active_record.rb
@@ -8,9 +8,6 @@ class Puppet::Node::Facts::InventoryActiveRecord < Puppet::Indirector::ActiveRec
return nil unless node
facts = Puppet::Node::Facts.new(node.name, node.facts_to_hash)
facts.timestamp = node.timestamp
- facts.values.each do |key,value|
- facts.values[key] = value.first if value.is_a?(Array) && value.length == 1
- end
facts
end