1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

windows: Two simple errors using Add-Warning (#25955)

This commit is contained in:
Dag Wieers 2017-06-27 00:40:16 +01:00 committed by Jordan Borean
parent 0dddae7ffa
commit 74efda65cd
2 changed files with 2 additions and 2 deletions

View file

@ -421,7 +421,7 @@ If ($state -eq "present") {
} }
If ($insertbefore -and $insertafter) { If ($insertbefore -and $insertafter) {
Add-Warning('Both insertbefore and insertafter parameters found, ignoring "insertafter=$insertafter"'); Add-Warning $result "Both insertbefore and insertafter parameters found, ignoring `"insertafter=$insertafter`""
} }
If (-not $insertbefore -and -not $insertafter) { If (-not $insertbefore -and -not $insertafter) {

View file

@ -45,7 +45,7 @@ if ($diff_support) {
# Fix HCCC:\ PSDrive for pre-2.3 compatibility # Fix HCCC:\ PSDrive for pre-2.3 compatibility
if ($path -match "^HCCC:\\") { if ($path -match "^HCCC:\\") {
Add-Warning("Please use path: HKCC:\... instead of path: $path") Add-Warning $result "Please use path: HKCC:\... instead of path: $path"
$path = $path -replace "HCCC:\\","HKCC:\\" $path = $path -replace "HCCC:\\","HKCC:\\"
} }