diff --git a/lib/ansible/modules/windows/win_chocolatey.ps1 b/lib/ansible/modules/windows/win_chocolatey.ps1 index 54b2657b50..5395539a41 100644 --- a/lib/ansible/modules/windows/win_chocolatey.ps1 +++ b/lib/ansible/modules/windows/win_chocolatey.ps1 @@ -328,7 +328,6 @@ Function Get-ChocolateyPackageVersion { $res = Run-Command -command $command # Chocolatey v0.10.12 introduced enhanced exit codes, 2 means no results, e.g. no package - # if ($res.rc -notin @(0, 2)) { $module.Result.command = $command $module.Result.rc = $res.rc