summaryrefslogtreecommitdiffstats
path: root/lib/puppet/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-10-12 18:00:10 -0500
committerLuke Kanies <luke@madstop.com>2007-10-12 18:00:10 -0500
commit74d77f76a012d523430e43f1092609a4ca584cc7 (patch)
tree482f5510954eb56721b826996195d7f5573aca19 /lib/puppet/node
parent512096afbd1dde4a63840ded45b4388e2e34048e (diff)
downloadpuppet-74d77f76a012d523430e43f1092609a4ca584cc7.tar.gz
puppet-74d77f76a012d523430e43f1092609a4ca584cc7.tar.xz
puppet-74d77f76a012d523430e43f1092609a4ca584cc7.zip
Adding version handling through most of the indirection work.
This counts as the first commit where configuration compiling actually uses the caching correctly according to the application model.
Diffstat (limited to 'lib/puppet/node')
-rw-r--r--lib/puppet/node/configuration.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/node/configuration.rb b/lib/puppet/node/configuration.rb
index da8dc3a9a..9adf9aea3 100644
--- a/lib/puppet/node/configuration.rb
+++ b/lib/puppet/node/configuration.rb
@@ -388,8 +388,12 @@ class Puppet::Node::Configuration < Puppet::PGraph
# dumped by default, nor does yaml-dumping # the edge-labels work at this point (I don't
# know why).
# Neither of these matters right now, but I suppose it could at some point.
+ # We also have to have the vertex_dict dumped after the resource table, because yaml can't
+ # seem to handle the output of yaml-dumping the vertex_dict.
def to_yaml_properties
- instance_variables.reject { |v| %w{@edgelist_class @edge_labels}.include?(v) }
+ props = instance_variables.reject { |v| %w{@edgelist_class @edge_labels @vertex_dict}.include?(v) }
+ props << "@vertex_dict"
+ props
end
private