We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 509a7ae commit d72c888Copy full SHA for d72c888
gems/aws-partitions/lib/aws-partitions.rb
@@ -212,7 +212,8 @@ def default_partition_list
212
def defaults
213
@defaults ||= begin
214
path = File.expand_path('../../partitions.json', __FILE__)
215
- JSON.load(File.read(path))
+ defaults = JSON.parse(File.read(path), freeze: true)
216
+ defaults.merge('partitions' => defaults['partitions'].dup)
217
end
218
219
0 commit comments