mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 04:09:29 -05:00
Fix: Possible crash on assembly fetching for third party assemblies (#815)
* Fixes possible crash on assembly fetching for third party assemblies * Updates Changelog
This commit is contained in:
parent
507575c5a9
commit
440a04659c
2 changed files with 13 additions and 4 deletions
|
|
@ -11,6 +11,12 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
|
|||
|
||||
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/38)
|
||||
|
||||
## 1.13.4 (tbd)
|
||||
|
||||
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/42)
|
||||
|
||||
* [#815](https://github.com/Icinga/icinga-powershell-framework/pull/815) Fixes a possible crash for `Test-IcingaAddTypeExist`, causing the Icinga for Windows installation to fail when third party components are checked which are malfunctioning
|
||||
|
||||
## 1.13.3 (2025-05-08)
|
||||
|
||||
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/39)
|
||||
|
|
|
|||
|
|
@ -31,12 +31,15 @@ function Test-IcingaAddTypeExist()
|
|||
}
|
||||
|
||||
foreach ($entry in [System.AppDomain]::CurrentDomain.GetAssemblies()) {
|
||||
if ($entry.GetTypes() -Match $Type) {
|
||||
$LoadedTypes.Add($Type, $TRUE);
|
||||
try {
|
||||
if ($entry.GetTypes() -Match $Type) {
|
||||
$LoadedTypes.Add($Type, $TRUE);
|
||||
|
||||
Set-IcingaPrivateEnvironmentVariable -Name 'AddTypeFunctions' -Value $LoadedTypes;
|
||||
Set-IcingaPrivateEnvironmentVariable -Name 'AddTypeFunctions' -Value $LoadedTypes;
|
||||
|
||||
return $TRUE;
|
||||
return $TRUE;
|
||||
}
|
||||
} catch {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue