Skip to content

Commit 7276d43

Browse files
authored
Merge pull request #835 from Icinga:fix/ensure_jea_always_rebuild_framework
Fix: JEA compiler to always force a framework rebuild on update Fixes JEA compiler to always enforce a rebuild of the Framework to ensure integrity of JEA profiles
2 parents 854ef78 + d2bc75c commit 7276d43

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/100-General/10-Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1111

1212
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/38)
1313

14+
* [#835](https://github.com/Icinga/icinga-powershell-framework/pull/835) Fixes JEA compiler to always enforce a rebuild of the Framework to ensure integrity of JEA profiles
15+
1416
## 1.13.4 (tbd)
1517

1618
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/42)

lib/core/jea/Install-IcingaJeaProfile.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ function Install-IcingaJEAProfile()
2323
}
2424

2525
Write-IcingaConsoleNotice 'Writing Icinga for Windows environment information as JEA profile';
26-
Write-IcingaJEAProfile -RebuildFramework:$RebuildFramework -AllowScriptBlocks:$AllowScriptBlocks;
26+
# Always rebuild the framework to ensure we have the latest configuration
27+
Write-IcingaJEAProfile -RebuildFramework -AllowScriptBlocks:$AllowScriptBlocks;
2728
Write-IcingaConsoleNotice 'Registering Icinga for Windows JEA profile';
2829
Register-IcingaJEAProfile -IcingaUser $IcingaUser -TestEnv:$TestEnv -ConstrainedLanguage:$ConstrainedLanguage;
2930
# We need to run the task renewal with our scheduled task to fix errors while using WinRM / SSH

0 commit comments

Comments
 (0)