summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTal Auslander <tal@cloudshare.com>2015-07-06 11:22:23 +0300
committerTal Auslander <tal@cloudshare.com>2015-07-06 11:22:23 +0300
commitc786202ee4b6a89cc509348006bfcbeab90a9819 (patch)
tree133e657881556f2026072c21e56f7c5e711146ef
parente80073ff8761fd48a1bb4a5cf8dd6970bbcf5084 (diff)
downloadansible-modules-core-c786202ee4b6a89cc509348006bfcbeab90a9819.tar.gz
use ConvertTo-Bool for the force parameter
-rw-r--r--windows/win_get_url.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/windows/win_get_url.ps1 b/windows/win_get_url.ps1
index 23463b68..02f19b39 100644
--- a/windows/win_get_url.ps1
+++ b/windows/win_get_url.ps1
@@ -40,9 +40,9 @@ Else {
Fail-Json $result "missing required argument: dest"
}
-$force = Get-Attr -obj $params -name "force" "no"
+$force = Get-Attr -obj $params -name "force" "no" | ConvertTo-Bool
-If ($force -eq "yes" -or -not (Test-Path $dest)) {
+If ($force -or -not (Test-Path $dest)) {
$client = New-Object System.Net.WebClient
Try {