Run communincator execute
This commit is contained in:
parent
8513a14f9e
commit
80457cd869
@ -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)
|
||||
)
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user