Test-CPULoad Load Skips Remaining Server if Run From One of the Servers in Group (Spotted by Jerris)
Closed this issue · 3 comments
HiltonGiesenow commented
See commentary here for full discussion - #143
Main issue:
if($PoShMonConfiguration.General.ServerNames -eq $env:COMPUTERNAME)
Possible solution:
$PoShMonConfiguration.General.ServerNames | Where-Object { $_ -ne $env:COMPUTERNAME }
Thanks Jerris for spotting this one too!
jerris commented
Still figuring out the way to catch this issue in Pester. Think I almost have it. Then I'll re-work the actual code.
jerris commented
Ok, I think I have it. It's not perfect, but a good start. The implementation is solid, but the tests may be a little wonky. Request close after acceptance.
HiltonGiesenow commented
Fixed, in next release