Fix name and method call in folders mappers

This commit is contained in:
Chris Roberts 2022-02-16 10:44:34 -08:00 committed by Paul Hinze
parent 94698704ab
commit 4679d39039
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -6,7 +6,7 @@ module VagrantPlugins
super(
inputs: [
Input.new(type: SDK::FuncSpec::Value) { |arg|
arg.type == "hashicorp.vagrant.sdk.Args.Folder" &&
arg.type == "hashicorp.vagrant.sdk.Args.Folders" &&
!arg&.value&.value.nil?
}
],
@ -33,7 +33,7 @@ module VagrantPlugins
end
def converter(proto, mappers)
h = mappers.map(proto.options, to: Hash)
h = mappers.map(proto.folders, to: Hash)
Type::Folders.new(value: h)
end
end