From 4ff086c1a8080c4435bf0ea90aac044f8353ebb5 Mon Sep 17 00:00:00 2001 From: nitzmahone Date: Thu, 22 Sep 2016 20:06:45 -0700 Subject: [PATCH] Fix win_chocolatey version comparison fixes #2995 --- lib/ansible/modules/extras/windows/win_chocolatey.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/windows/win_chocolatey.ps1 b/lib/ansible/modules/extras/windows/win_chocolatey.ps1 index 7a3f14aabc3..3bb6a1f0dc0 100644 --- a/lib/ansible/modules/extras/windows/win_chocolatey.ps1 +++ b/lib/ansible/modules/extras/windows/win_chocolatey.ps1 @@ -74,7 +74,7 @@ Function Chocolatey-Install-Upgrade { $script:executable = "choco.exe" - if ((choco --version) -lt '0.9.9') + if ([Version](choco --version) -lt [Version]'0.9.9') { Choco-Upgrade chocolatey }