Check that the result is something that can be used as an exit code

This commit is contained in:
Chris Roberts 2021-04-23 16:05:06 -07:00 committed by Paul Hinze
parent c2fe40854f
commit 2f0dcda7e8
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -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