mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
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) {
|
if ($user -and $password) {
|
||||||
$webrequest_opts.Credential = New-Object System.Management.Automation.PSCredential($user, $($password | ConvertTo-SecureString -AsPlainText -Force))
|
$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"
|
Add-Warning -obj $result -message "Both 'user' and 'password' parameters are required together, skipping authentication"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue