Page MenuHomePhabricator
Paste P10344

patch puppet master --compile
ActivePublic

Authored by jbond on Fri, Feb 7, 12:17 PM.
diff --git a/lib/puppet/application/master.rb b/lib/puppet/application/master.rb
index 673761dfb5..953357dec8 100644
--- a/lib/puppet/application/master.rb
+++ b/lib/puppet/application/master.rb
@@ -171,8 +171,13 @@ Copyright (c) 2012 Puppet Inc., LLC Licensed under the Apache 2.0 License
puts JSON::pretty_generate(catalog.to_resource, :allow_nan => true, :max_nesting => false)
rescue => detail
- Puppet.log_exception(detail, _("Failed to compile catalog for node %{node}: %{detail}") % { node: options[:node], detail: detail })
- exit(30)
+ begin
+ Puppet.warning _("Failed to compile catalog for node %{node}: %{detail}") % { node: options[:node], detail: detail }
+ puts PSON::pretty_generate(catalog.to_resource, :allow_nan => true, :max_nesting => false)
+ rescue => detail
+ Puppet.log_exception(detail, _("Failed to compile catalog for node %{node}: %{detail}") % { node: options[:node], detail: detail })
+ exit(30)
+ end
end
exit(0)
end

Event Timeline

jbond created this paste.Fri, Feb 7, 12:17 PM
jbond edited the content of this paste. (Show Details)
jbond edited the content of this paste. (Show Details)Fri, Feb 7, 12:22 PM