We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently the Test-PSRuleTarget returns $True (fails open) if no rules matched the object (Outcome of None).
Test-PSRuleTarget
$True
None
Originally when either $True or $False were the only output this seemed the best choice. Specifically:
$False
The object fails if: Any rules fail or error. Any rules are inconclusive. The object passes if: No rules were found that match preconditions, name and tag filters. All rules pass.
The object fails if:
The object passes if:
With #176 and #317 it no longer makes sense to return $True by default when the object hasn't even been processed.
Instead by default Test-PSRuleTest should:
Test-PSRuleTest
Additionally an -Outcome parameter could be added to include None on an as needed basis.
-Outcome
The text was updated successfully, but these errors were encountered:
Filter objects by target type #176 #315 #318
477ab6b
Filter objects by target type #176 #315 #318 (#319)
5bd0815
BernieWhite
Successfully merging a pull request may close this issue.
Currently the
Test-PSRuleTarget
returns$True
(fails open) if no rules matched the object (Outcome ofNone
).Originally when either
$True
or$False
were the only output this seemed the best choice. Specifically:With #176 and #317 it no longer makes sense to return
$True
by default when the object hasn't even been processed.Instead by default
Test-PSRuleTest
should:$False
if any rule failed, returned an error or were inconclusive.$True
if all rules passed.Additionally an
-Outcome
parameter could be added to includeNone
on an as needed basis.The text was updated successfully, but these errors were encountered: