mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Map provisioner config to Hash using mappers instead of assuming Struct type
This commit is contained in:
parent
7dd3649d73
commit
333fc16096
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ module VagrantPlugins
|
|||
config_klass = config.type.split('::').inject(Kernel) { |memo, obj|
|
||||
memo.const_get(obj)
|
||||
}
|
||||
config_data = config.config.unpack(Google::Protobuf::Struct).to_h
|
||||
config_data = mapper.map(config.config, to: Hash)
|
||||
plugin_config = config_klass.new
|
||||
plugin_config.set_options(config_data)
|
||||
return machine, plugin_config
|
||||
|
|
|
|||
Loading…
Reference in a new issue