diff --git a/lib/ansible/modules/windows/win_chocolatey.ps1 b/lib/ansible/modules/windows/win_chocolatey.ps1 index 318c16e453..d3df757a06 100644 --- a/lib/ansible/modules/windows/win_chocolatey.ps1 +++ b/lib/ansible/modules/windows/win_chocolatey.ps1 @@ -43,9 +43,9 @@ if ($source) {$source = $source.Tolower()} if ($upgrade) { - Add-DeprecateWarning $result "Parameter upgrade=yes is replaced with state=latest" + Add-DeprecationWarning $result "Parameter upgrade=yes is replaced with state=latest" if ($state -eq "present") -{ + { $state = "latest" } }