Fixes plugin doc generator file lookup

This commit is contained in:
Lord Hepipud 2022-01-23 13:09:30 +01:00
parent 3313976670
commit 2b61c297ea
2 changed files with 2 additions and 1 deletions

View file

@ -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 * [#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) * [#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` * [#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 ### Enhancements

View file

@ -54,7 +54,7 @@ function Publish-IcingaPluginDocumentation()
[string]$PluginDocName = ''; [string]$PluginDocName = '';
foreach ($DocFile in $MDFiles) { foreach ($DocFile in $MDFiles) {
$DocFileName = $DocFile.Name; $DocFileName = $DocFile.Name;
if ($DocFileName -Like "*$PluginName*") { if ($DocFileName -Like "*$PluginName.md") {
$PluginDocName = $DocFile.Name; $PluginDocName = $DocFile.Name;
break; break;
} }