From f3bebdbdbc3be0be1f2cb8ec39b402d7c0464258 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Thu, 6 Aug 2020 00:02:26 +0200 Subject: [PATCH] Fixes missing Name argument for Test-IcingaTimer --- lib/core/framework/Start-IcingaTimer.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/framework/Start-IcingaTimer.psm1 b/lib/core/framework/Start-IcingaTimer.psm1 index 8344712..9671b6a 100644 --- a/lib/core/framework/Start-IcingaTimer.psm1 +++ b/lib/core/framework/Start-IcingaTimer.psm1 @@ -26,7 +26,7 @@ function Start-IcingaTimer() [string]$Name = 'DefaultTimer' ); - if ((Test-IcingaTimer)) { + if ((Test-IcingaTimer -Name $Name)) { Write-IcingaConsoleNotice 'The timer with the name "{0}" is already active' -Objects $Name; return; }