Skip to content

Commit d72c888

Browse files
committed
Test json fix
1 parent 509a7ae commit d72c888

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gems/aws-partitions/lib/aws-partitions.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ def default_partition_list
212212
def defaults
213213
@defaults ||= begin
214214
path = File.expand_path('../../partitions.json', __FILE__)
215-
JSON.load(File.read(path))
215+
defaults = JSON.parse(File.read(path), freeze: true)
216+
defaults.merge('partitions' => defaults['partitions'].dup)
216217
end
217218
end
218219

0 commit comments

Comments
 (0)