Fixes missing Name argument for Test-IcingaTimer

This commit is contained in:
Lord Hepipud 2020-08-06 00:02:26 +02:00
parent 00be110554
commit f3bebdbdbc

View file

@ -26,7 +26,7 @@ function Start-IcingaTimer()
[string]$Name = 'DefaultTimer' [string]$Name = 'DefaultTimer'
); );
if ((Test-IcingaTimer)) { if ((Test-IcingaTimer -Name $Name)) {
Write-IcingaConsoleNotice 'The timer with the name "{0}" is already active' -Objects $Name; Write-IcingaConsoleNotice 'The timer with the name "{0}" is already active' -Objects $Name;
return; return;
} }