win_msi:Fixing Issue #20315 - shows changed even when msi not found (#20358)

* win_msi #20315 - shows changed even when msi not found

* make brace placement consistent
This commit is contained in:
JimFicarra 2017-02-04 03:32:06 -05:00 committed by John R Barker
parent 467fde5644
commit 46503c6d1f

View file

@ -37,6 +37,10 @@ if (($creates -ne $null) -and ($state -ne "absent") -and (Test-Path $creates)) {
Exit-Json $result
}
if (-not (Test-Path $path)) {
Fail-Json $result "Cannot find $path."
}
$logfile = [IO.Path]::GetTempFileName()
if ($state -eq "absent") {