Skip to content

Commit 3c46019

Browse files
committed
Fixes test commands failing because wrong assigned service data
1 parent d0fc13a commit 3c46019

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

doc/100-General/10-Changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ documentation before upgrading to a new release.
77

88
Released closed milestones can be found on [GitHub](https://github.com/Icinga/icinga-powershell-framework/milestones?state=closed).
99

10+
## 1.13.1 (2025-01-31)
11+
12+
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/39)
13+
14+
### Bugfixes
15+
16+
* [#778](https://github.com/Icinga/icinga-powershell-framework/issues/778) Fixes test commands like `Test-IcingaForWindows` failing because of wrong assigned ServiceData information.
17+
1018
## 1.13.0 (2025-01-30)
1119

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

jobs/GetWindowsService.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ try {
2121
if ($null -ne $SvcData) {
2222
$ServiceConfig = $SvcData."$ServiceName".configuration;
2323
$ServiceMeta = $SvcData."$ServiceName".metadata;
24-
$ServiceInfo.Status = [string]$ServiceConfig.Status.value;
25-
$ServiceInfo.User = [string]$ServiceConfig.ServiceUser;
26-
$ServiceInfo.ServicePath = [string]$ServiceConfig.ServicePath;
27-
$ServiceInfo.Name = $ServiceMeta.ServiceName;
28-
$ServiceInfo.DisplayName = $ServiceMeta.DisplayName;
24+
$ServiceData.Status = [string]$ServiceConfig.Status.value;
25+
$ServiceData.User = [string]$ServiceConfig.ServiceUser;
26+
$ServiceData.ServicePath = [string]$ServiceConfig.ServicePath;
27+
$ServiceData.Name = $ServiceMeta.metadata.ServiceName;
28+
$ServiceData.DisplayName = $ServiceMeta.metadata.DisplayName;
2929
$ServiceData.Present = $TRUE;
3030
}
3131
} catch {

0 commit comments

Comments
 (0)