summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaveres <daveres@users.noreply.github.com>2015-12-08 19:00:31 +0100
committernitzmahone <mdavis@ansible.com>2015-12-11 09:13:25 -0800
commit2df03cbc8be1d4823e24ec25b96fedf0c0b17a4e (patch)
treeeb90eba6b4828c4deaca69baa544b203e40cf667
parenta54bc90261bb1b4752a694b93891288ddfe71f47 (diff)
downloadansible-modules-extras-2df03cbc8be1d4823e24ec25b96fedf0c0b17a4e.tar.gz
Correct problem with changed:true
I have just changed a small piece of this module to avoid to return always that the task is changed
-rw-r--r--windows/win_chocolatey.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/windows/win_chocolatey.ps1 b/windows/win_chocolatey.ps1
index ce006fff..2c9a9458 100644
--- a/windows/win_chocolatey.ps1
+++ b/windows/win_chocolatey.ps1
@@ -86,7 +86,7 @@ Function Choco-IsInstalled
Throw "Error checking installation status for $package"
}
- If ("$results" -match " $package .* (\d+) packages installed.")
+ If ("$results" -match "$package .* (\d+) packages installed.")
{
return $matches[1] -gt 0
}