summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2010-10-20 11:33:20 -0700
committerMarkus Roberts <Markus@reality.com>2010-11-16 11:18:04 -0800
commitfbb096a1eb6394da3199c03645986a1315132272 (patch)
tree27cabbf756405595a09727f9f91cf17741a7f509 /lib/puppet
parentb2ff6a50202a05f2925fa5046a39ef7f163983f1 (diff)
downloadpuppet-fbb096a1eb6394da3199c03645986a1315132272.tar.gz
puppet-fbb096a1eb6394da3199c03645986a1315132272.tar.xz
puppet-fbb096a1eb6394da3199c03645986a1315132272.zip
Fix for #5055 -- adding to_sym to Puppet::Node::Environment
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).
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/node/environment.rb4
1 files changed, 4 insertions, 0 deletions
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.