diff --git a/plugins/commands/serve/service/command_service.rb b/plugins/commands/serve/service/command_service.rb index bda743d00..3abe97a27 100644 --- a/plugins/commands/serve/service/command_service.rb +++ b/plugins/commands/serve/service/command_service.rb @@ -261,7 +261,7 @@ module VagrantPlugins end SDK::Command::ExecuteResp.new( - exit_code: result + exit_code: result.respond_to?(:to_i) ? result.to_i : 1 ) end end