From 2b61c297ea143f68e80dee8a830bee6b70b586b4 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Sun, 23 Jan 2022 13:09:30 +0100 Subject: [PATCH] Fixes plugin doc generator file lookup --- doc/100-General/10-Changelog.md | 1 + lib/core/framework/Publish-IcingaPluginDocumentation.psm1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/100-General/10-Changelog.md b/doc/100-General/10-Changelog.md index 665ea90..5e5c9c1 100644 --- a/doc/100-General/10-Changelog.md +++ b/doc/100-General/10-Changelog.md @@ -25,6 +25,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic * [#412](https://github.com/Icinga/icinga-powershell-framework/issues/412) Fixes possible defective state of the Icinga Agent by using a custom service user for JEA profiles which is larger than 20 digits * [#418](https://github.com/Icinga/icinga-powershell-framework/pull/418) Fixes crash on wrong variable usage introduced by [#411](https://github.com/Icinga/icinga-powershell-framework/pull/411) * [#421](https://github.com/Icinga/icinga-powershell-framework/issues/421) Fixes experimental state of `API Check` feature by removing that term and removing the requirement to install `icinga-powershell-restapi` and `icinga-powershell-apichecks` +* [#436](https://github.com/Icinga/icinga-powershell-framework/pull/436) Fixes a lookup error for existing plugin documentation files, which caused files not being generated properly in case a similar name was already present on the system ### Enhancements diff --git a/lib/core/framework/Publish-IcingaPluginDocumentation.psm1 b/lib/core/framework/Publish-IcingaPluginDocumentation.psm1 index 474585a..5aecf46 100644 --- a/lib/core/framework/Publish-IcingaPluginDocumentation.psm1 +++ b/lib/core/framework/Publish-IcingaPluginDocumentation.psm1 @@ -54,7 +54,7 @@ function Publish-IcingaPluginDocumentation() [string]$PluginDocName = ''; foreach ($DocFile in $MDFiles) { $DocFileName = $DocFile.Name; - if ($DocFileName -Like "*$PluginName*") { + if ($DocFileName -Like "*$PluginName.md") { $PluginDocName = $DocFile.Name; break; }