mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Attempt to decode via JSON before failing
This commit is contained in:
parent
105c877551
commit
19d695cc78
1 changed files with 5 additions and 1 deletions
|
|
@ -31,7 +31,11 @@ module VagrantPlugins
|
|||
raise NameError,
|
||||
"failed to locate required protobuf constant `SDK::Args::#{n}'\n\nArgs: #{SDK::Args.constants.inspect}"
|
||||
end
|
||||
raw = klass.decode(raw)
|
||||
begin
|
||||
raw = klass.decode(raw)
|
||||
rescue
|
||||
raw = klass.decode_json(raw)
|
||||
end
|
||||
end
|
||||
self.new(connect(proto: raw, broker: broker), raw, broker)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue