win_uri: fix elif to elseif (#32330)
This commit is contained in:
parent
310eb833a4
commit
6bc85744ef
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue