Check that the result is something that can be used as an exit code
This commit is contained in:
parent
c2fe40854f
commit
2f0dcda7e8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user