summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface/documentation.rb
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppetlabs.com>2011-04-26 14:02:48 -0700
committerJosh Cooper <josh@puppetlabs.com>2011-04-26 14:02:48 -0700
commitf656818bcd7cb88f24f6c578790771952120b1cc (patch)
treee94cade5981c9cabfe747ea62a42763b7a27b945 /lib/puppet/interface/documentation.rb
parent0b9c7adce13cad4325d514f9d97562364042319c (diff)
downloadpuppet-f656818bcd7cb88f24f6c578790771952120b1cc.tar.gz
puppet-f656818bcd7cb88f24f6c578790771952120b1cc.tar.xz
puppet-f656818bcd7cb88f24f6c578790771952120b1cc.zip
(#4487) When setting environment on a host, ensure it is a string.
Before this change when environment strings were read out of the storeconfigs database, they were eventually converted up to Puppet::Node::Environment objects. When these objects are returned to the storeconfigs database, ActiveRecord dumps them as YAML, which begins the death-spiral of YAML. This change makes it so the host will always store the environment as a string, preventing the Puppet::Node::Environment object from being YAMLized, and stored as such in the database. This change was based on one by Richard Crowley. Paired-with: Jacob Helwig <jacob@puppetlabs.com> Reviewed-by: Jesse Wolfe <jesse@puppetlabs.com> Signed-off-by: Richard Crowley <r@rcrowley.org>
Diffstat (limited to 'lib/puppet/interface/documentation.rb')
0 files changed, 0 insertions, 0 deletions