PSRule icon indicating copy to clipboard operation
PSRule copied to clipboard

Outcome all returns a different results between invoke and assert

Open BernieWhite opened this issue 3 years ago • 0 comments

Description of the issue

When Invoke-PSRule is called with -Outcome All processed and unprocessed results should be returned.

Similarly, when Assert-PSRule is called with -ResultVariable and -Outcome All processed and unprocessed results should be returned to the specified variable.

Currently Assert-PSRule is only returning processed results.

Expected behaviour

The variable returned from -ResultVariable should contain the same results as Invoke-PSRule.

Module in use and version:

  • Module: PSRule
  • Version: 2.4.0

Additional context

Related to #1266

BernieWhite avatar Sep 19 '22 10:09 BernieWhite