Skip to content
New issue

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

Reason is emitted for pre-condition sub-selectors #1394

Closed
BernieWhite opened this issue Dec 20, 2022 · 0 comments · Fixed by #1395
Closed

Reason is emitted for pre-condition sub-selectors #1394

BernieWhite opened this issue Dec 20, 2022 · 0 comments · Fixed by #1395
Assignees
Labels
bug Something isn't working feature: language Issues that affect language such keywords and variables
Milestone

Comments

@BernieWhite
Copy link
Member

Description of the issue

If a condition within a pre-condition sub-selector fails it should not generate a reason. Because pre-conditions are used to filter rules.

A reason could be returned if:

  • The pre-condition has more then one conditions and at least one passes; and
  • The rule fails.

Module in use and version:

  • Module: PSRule
  • Version: 2.7.0-B0097

Captured output from $PSVersionTable:

Name                           Value
----                           -----
PSVersion                      7.3.1
PSEdition                      Core
GitCommitId                    7.3.1
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@BernieWhite BernieWhite added bug Something isn't working feature: language Issues that affect language such keywords and variables labels Dec 20, 2022
@BernieWhite BernieWhite added this to the v2.7.0 milestone Dec 20, 2022
@BernieWhite BernieWhite self-assigned this Dec 20, 2022
BernieWhite added a commit to BernieWhite/PSRule that referenced this issue Dec 20, 2022
This was referenced Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature: language Issues that affect language such keywords and variables
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant