From 868d19b5090826f0c31cd98e9101bef5a7f15b22 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Thu, 2 Mar 2017 07:21:22 +0100 Subject: [PATCH] Typo in Add-DeprecationWarning call (#22168) Unfortunately the script does not stop/fail because of such errors. --- lib/ansible/modules/windows/win_chocolatey.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" } }