win_uri: fix elif to elseif (#32330)

pull/32332/head
Jordan Borean 8 years ago committed by GitHub
parent 310eb833a4
commit 6bc85744ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"
}

Loading…
Cancel
Save