Use #to_proto on class match, otherwise convert
This commit is contained in:
parent
2572d4f62b
commit
da9892a62f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user