Run communincator execute

This commit is contained in:
sophia 2021-11-01 11:13:25 -05:00 committed by Paul Hinze
parent 8513a14f9e
commit 80457cd869
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 2 additions and 7 deletions

View File

@ -168,12 +168,7 @@ module VagrantPlugins
protected
def generate_execution_request(machine, cmd, opts={})
# opts.each do |k,v|
# val = Google::Protobuf::Value.new
# val.from_ruby(v)
# opts[k] = val
# end
opts.transform_values! { |v| v.is_a?(Symbol) ? v.to_s : v}
opts_struct = Google::Protobuf::Struct.from_hash(
opts.transform_keys(&:to_s)
)

View File

@ -232,7 +232,7 @@ module VagrantPlugins
plugin = Vagrant.plugin("2").manager.communicators[plugin_name.to_s.to_sym]
communicator = plugin.new(machine)
exit_code = communicator.execute(cmd, opts)
exit_code = communicator.execute(cmd.command, opts)
logger.debug("command exit code: #{exit_code}")
SDK::Communicator::ExecuteResp.new(