From 6bc85744ef120ddc4a7878abb2a63181b45f3aa3 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Mon, 30 Oct 2017 10:43:43 +1000 Subject: [PATCH] win_uri: fix elif to elseif (#32330) --- lib/ansible/modules/windows/win_uri.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/windows/win_uri.ps1 b/lib/ansible/modules/windows/win_uri.ps1 index d4ac4ee174..5e7ec6b3b6 100644 --- a/lib/ansible/modules/windows/win_uri.ps1 +++ b/lib/ansible/modules/windows/win_uri.ps1 @@ -114,7 +114,7 @@ if ($dest -and -not $check_mode) { if ($user -and $password) { $webrequest_opts.Credential = New-Object System.Management.Automation.PSCredential($user, $($password | ConvertTo-SecureString -AsPlainText -Force)) -} elif ($user -or $password) { +} elseif ($user -or $password) { Add-Warning -obj $result -message "Both 'user' and 'password' parameters are required together, skipping authentication" }