Freeze base mappers list to prevent direct modifications

This commit is contained in:
Chris Roberts 2022-04-06 14:12:58 -07:00 committed by Paul Hinze
parent 2f9daa8498
commit 823e589a26
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -87,7 +87,7 @@ module VagrantPlugins
class << self
def mappers
@mappers ||= Mapper.registered.map(&:new)
@mappers ||= Mapper.registered.map(&:new).freeze
end
def cache