Use #to_proto on class match, otherwise convert

This commit is contained in:
Chris Roberts 2022-07-11 15:09:46 -07:00
parent 2572d4f62b
commit da9892a62f

View File

@ -63,7 +63,9 @@ module VagrantPlugins
end
def converter(t)
t.to_proto
return t.to_proto if
t.class == Client::Target
t.client.as_target(Empty.new)
end
end
end