Skip to content

Commit 6a82bf0

Browse files
authored
Merge pull request #321 from Icinga:fix/code_cache_creation_loop
Fix: Code cache creation loop With the previous implementation, we caused an infinite creation of the code cache during every execution, causing Icinga to fail executing checks.
2 parents 22c1cd4 + 79ace6b commit 6a82bf0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

icinga-powershell-framework.psm1

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ function Use-Icinga()
4646
Use-IcingaPlugins;
4747
}
4848

49-
Write-IcingaFrameworkCodeCache;
50-
5149
# This function will allow us to load this entire module including possible
5250
# actions, making it available within our shell environment
5351
# First load our custom modules
@@ -135,7 +133,7 @@ function Import-IcingaLib()
135133

136134
$CacheFile = Get-IcingaFrameworkCodeCacheFile;
137135

138-
if ($Custom -eq $FALSE -And $CompileCache -eq $FALSE -And (Test-Path $CacheFile)) {
136+
if ($CompileCache -eq $FALSE) {
139137
Import-Module 'icinga-powershell-framework' -Global -Force;
140138
return;
141139
}

0 commit comments

Comments
 (0)