File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,11 @@ def self.base_context(settings)
237
237
:ssl_context => proc { Puppet . runtime [ :http ] . default_ssl_context } ,
238
238
:http_session => proc { Puppet . runtime [ :http ] . create_session } ,
239
239
:plugins => proc { Puppet ::Plugins ::Configuration . load_plugins } ,
240
- :rich_data => Puppet [ :rich_data ]
240
+ :rich_data => Puppet [ :rich_data ] ,
241
+ # `stringify_rich` controls whether `rich_data` is stringified into a lossy format
242
+ # instead of a lossless format. Catalogs should not be stringified, though to_yaml
243
+ # and the resource application have uses for a lossy, user friendly format.
244
+ :stringify_rich => false
241
245
}
242
246
end
243
247
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def to_data_hash
112
112
# To get stringified parameter values the flag :stringify_rich can be set
113
113
# in the puppet context.
114
114
#
115
- stringify = Puppet . lookup ( :stringify_rich ) { false }
115
+ stringify = Puppet . lookup ( :stringify_rich )
116
116
converter = stringify ? Puppet ::Pops ::Serialization ::ToStringifiedConverter . new : nil
117
117
118
118
params = { }
You can’t perform that action at this time.
0 commit comments