From 79ace6b475605d2489a4c02ee6763bd5c65b6824 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Sat, 7 Aug 2021 01:47:53 +0200 Subject: [PATCH] Fix code cache creation loop --- icinga-powershell-framework.psm1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/icinga-powershell-framework.psm1 b/icinga-powershell-framework.psm1 index eda4152..92f94dc 100644 --- a/icinga-powershell-framework.psm1 +++ b/icinga-powershell-framework.psm1 @@ -46,8 +46,6 @@ function Use-Icinga() Use-IcingaPlugins; } - Write-IcingaFrameworkCodeCache; - # This function will allow us to load this entire module including possible # actions, making it available within our shell environment # First load our custom modules @@ -135,7 +133,7 @@ function Import-IcingaLib() $CacheFile = Get-IcingaFrameworkCodeCacheFile; - if ($Custom -eq $FALSE -And $CompileCache -eq $FALSE -And (Test-Path $CacheFile)) { + if ($CompileCache -eq $FALSE) { Import-Module 'icinga-powershell-framework' -Global -Force; return; }