summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/network/client/master.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/network/client/master.rb
index 2dc71b45e..c96b0c278 100644
--- a/lib/puppet/network/client/master.rb
+++ b/lib/puppet/network/client/master.rb
@@ -616,10 +616,6 @@ class Puppet::Network::Client::Master < Puppet::Network::Client
Puppet::Util::Storage.cache(:configuration)[:compile_time] = @compile_time
end
- if @cache and ! fromcache
- self.cache(textobjects)
- end
-
begin
objects = YAML.load(textobjects)
rescue => detail
@@ -627,6 +623,10 @@ class Puppet::Network::Client::Master < Puppet::Network::Client
"Could not understand configuration: %s" %
detail.to_s
end
+
+ if @cache and ! fromcache
+ self.cache(textobjects)
+ end
return objects
end