From 2f0dcda7e81658976699a5115ddb25a495c7202c Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Fri, 23 Apr 2021 16:05:06 -0700 Subject: [PATCH] Check that the result is something that can be used as an exit code --- plugins/commands/serve/service/command_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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