diff --git a/plugins/communicators/winrm/communicator.rb b/plugins/communicators/winrm/communicator.rb index cdb2bc7cf..bfabd2fb1 100644 --- a/plugins/communicators/winrm/communicator.rb +++ b/plugins/communicators/winrm/communicator.rb @@ -125,7 +125,7 @@ module VagrantPlugins if opts[:shell] == :wql return output elsif opts[:error_check] && \ - !opts[:good_exit].include(output[:exitcode]) + !opts[:good_exit].include?(output[:exitcode]) raise_execution_error(output, opts) end output[:exitcode]