Merge pull request #543 from Icinga:fix/developer_mode_option_causes_always_cache_reset_while_using_icinga

Fix: icinga command always resetting cache

Fixes the `icinga` command which always resets the Framework cache, caused by newly introduced `Developer Mode`
This commit is contained in:
Lord Hepipud 2022-08-17 15:30:18 +02:00 committed by GitHub
commit c200cc6f11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -321,7 +321,7 @@ function Invoke-IcingaCommand()
return "> " return "> "
} }
} -Args $ScriptBlock, $PSScriptRoot, $IcingaFrameworkData.PrivateData.Version, ([bool]$Shell), $ArgumentList, $DeveloperMode; } -Args $ScriptBlock, $PSScriptRoot, $IcingaFrameworkData.PrivateData.Version, ([bool]$Shell), $ArgumentList, ([bool]$DeveloperMode);
# In case we close the newly created PowerShell, ensure we set the script root back to the Framework folder # In case we close the newly created PowerShell, ensure we set the script root back to the Framework folder
if (Test-Path $PSScriptRoot) { if (Test-Path $PSScriptRoot) {