Commit deec1bb
committed
Test-TargetResource returning non-boolean value.
If only passing in the $Name parameter to Test-TargetResource, the only
required parameter, and $Name –eq $env:COMPUTERNAME, you drop to the
bottom of the function and the function completes without returning a
bool, causing an error.
Since all false cases are covered with existing return, a true return
was added to the end of the function.1 parent a0510cd commit deec1bb
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
223 | 225 | | |
224 | 226 | | |
225 | 227 | | |
| |||
0 commit comments