mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-18 18:18:16 -05:00
Fixes test commands failing because wrong assigned service data
This commit is contained in:
parent
d0fc13a8f0
commit
3c46019bf4
2 changed files with 13 additions and 5 deletions
|
|
@ -7,6 +7,14 @@ documentation before upgrading to a new release.
|
|||
|
||||
Released closed milestones can be found on [GitHub](https://github.com/Icinga/icinga-powershell-framework/milestones?state=closed).
|
||||
|
||||
## 1.13.1 (2025-01-31)
|
||||
|
||||
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/39)
|
||||
|
||||
### Bugfixes
|
||||
|
||||
* [#778](https://github.com/Icinga/icinga-powershell-framework/issues/778) Fixes test commands like `Test-IcingaForWindows` failing because of wrong assigned ServiceData information.
|
||||
|
||||
## 1.13.0 (2025-01-30)
|
||||
|
||||
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/37)
|
||||
|
|
|
|||
|
|
@ -21,11 +21,11 @@ try {
|
|||
if ($null -ne $SvcData) {
|
||||
$ServiceConfig = $SvcData."$ServiceName".configuration;
|
||||
$ServiceMeta = $SvcData."$ServiceName".metadata;
|
||||
$ServiceInfo.Status = [string]$ServiceConfig.Status.value;
|
||||
$ServiceInfo.User = [string]$ServiceConfig.ServiceUser;
|
||||
$ServiceInfo.ServicePath = [string]$ServiceConfig.ServicePath;
|
||||
$ServiceInfo.Name = $ServiceMeta.ServiceName;
|
||||
$ServiceInfo.DisplayName = $ServiceMeta.DisplayName;
|
||||
$ServiceData.Status = [string]$ServiceConfig.Status.value;
|
||||
$ServiceData.User = [string]$ServiceConfig.ServiceUser;
|
||||
$ServiceData.ServicePath = [string]$ServiceConfig.ServicePath;
|
||||
$ServiceData.Name = $ServiceMeta.metadata.ServiceName;
|
||||
$ServiceData.DisplayName = $ServiceMeta.metadata.DisplayName;
|
||||
$ServiceData.Present = $TRUE;
|
||||
}
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Reference in a new issue