mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes unneeded continue on no JEA pid
This commit is contained in:
parent
acbbc4f68b
commit
cc3f750956
2 changed files with 5 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
|
|||
|
||||
* [#361](https://github.com/Icinga/icinga-powershell-framework/issues/361) Fixes IMC freeze on Icinga Director Self-Service installation, in case no Agent installation set on Self-Service API config
|
||||
* [#362](https://github.com/Icinga/icinga-powershell-framework/issues/362) Fixes repository component installation from file share locations
|
||||
* [#363](https://github.com/Icinga/icinga-powershell-framework/issues/363) Fixes unneeded continue for JEA process lookup, in case no JEA pid is present
|
||||
|
||||
## 1.6.0 (2021-09-07)
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,10 @@ function Test-IcingaJEAServiceRunning()
|
|||
[string]$JeaPid = Get-IcingaJEAServicePid;
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrEmpty($JeaPid)) {
|
||||
return $FALSE;
|
||||
}
|
||||
|
||||
$JeaPowerShellProcess = Get-Process -Id $JeaPid -ErrorAction SilentlyContinue;
|
||||
if ($null -eq $JeaPowerShellProcess) {
|
||||
return $FALSE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue