From fbb096a1eb6394da3199c03645986a1315132272 Mon Sep 17 00:00:00 2001 From: Markus Roberts Date: Wed, 20 Oct 2010 11:33:20 -0700 Subject: Fix for #5055 -- adding to_sym to Puppet::Node::Environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The currious part is that this wasn't noticed before since it appears to block server-first migration to 2.6.x and doesn’t appear to be the consequence of a recent (2.6.3) change (unless, as is quite possible, I’m missing something). --- lib/puppet/node/environment.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/puppet/node') diff --git a/lib/puppet/node/environment.rb b/lib/puppet/node/environment.rb index 3f67474f9..b64fb8a1f 100644 --- a/lib/puppet/node/environment.rb +++ b/lib/puppet/node/environment.rb @@ -124,6 +124,10 @@ class Puppet::Node::Environment name.to_s end + def to_sym + to_s.to_sym + end + # The only thing we care about when serializing an environment is its # identity; everything else is ephemeral and should not be stored or # transmitted. -- cgit