mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 04:09:29 -05:00
Merge pull request #779 from Icinga:fix/test_commands_fails_because_of_missing_service_data
Fix: Test commands failing because wrong assigned service data Fixes test commands like `Test-IcingaForWindows` failing because of wrong assigned ServiceData information.
This commit is contained in:
commit
fe10fe3755
2 changed files with 13 additions and 5 deletions
|
|
@ -11,6 +11,14 @@ 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.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