Merge pull request #128 from Icinga:fix/icinga_timer_unhandled_output

Fixes uncatched invisible output on Start-IcingaTimer

Fixes unhandled output from loading `System.Reflection.Assembly` which can cause weird side effects for plugin outputs
This commit is contained in:
Lord Hepipud 2020-09-15 15:48:50 +02:00 committed by GitHub
commit 8a99b1761f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
### Bugfixes ### Bugfixes
* [#127](https://github.com/Icinga/icinga-powershell-framework/issues/127) Fixes wrong error message on failed MSSQL connection due to database not reachable by using `-IntegratedSecurity` * [#127](https://github.com/Icinga/icinga-powershell-framework/issues/127) Fixes wrong error message on failed MSSQL connection due to database not reachable by using `-IntegratedSecurity`
* [#128](https://github.com/Icinga/icinga-powershell-framework/issues/128) Fixes unhandled output from loading `System.Reflection.Assembly` which can cause weird side effects for plugin outputs
## 1.2.0 (2020-08-28) ## 1.2.0 (2020-08-28)

View file

@ -32,7 +32,7 @@ function Start-IcingaTimer()
} }
# Load the library first # Load the library first
[System.Reflection.Assembly]::LoadWithPartialName("System.Diagnostics"); [System.Reflection.Assembly]::LoadWithPartialName("System.Diagnostics") | Out-Null;
$TimerObject = New-Object System.Diagnostics.Stopwatch; $TimerObject = New-Object System.Diagnostics.Stopwatch;
$TimerObject.Start(); $TimerObject.Start();