Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F31553799
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
jbond
Feb 7 2020, 12:22 PM
2020-02-07 12:22:03 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
raw.txt
View Options
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
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8304812
Default Alt Text
raw.txt (1 KB)
Attached To
Mode
P10344 patch puppet master --compile
Attached
Detach File
Event Timeline
Log In to Comment