Fixes Rest-Api address argument not being used

This commit is contained in:
Lord Hepipud 2021-11-16 16:28:00 +01:00
parent 3c9249444a
commit 79d22ef127
3 changed files with 3 additions and 0 deletions

View file

@ -13,6 +13,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
### Bugfixes ### Bugfixes
* [#402](https://github.com/Icinga/icinga-powershell-framework/pull/402) Fixes missing address attribute for REST-Api daemon, making it unable to change the listening address
* [#403](https://github.com/Icinga/icinga-powershell-framework/pull/403) Fixes memory leak on newly EventLog reader for CLI event stream * [#403](https://github.com/Icinga/icinga-powershell-framework/pull/403) Fixes memory leak on newly EventLog reader for CLI event stream
## 1.7.1 (2021-11-11) ## 1.7.1 (2021-11-11)

View file

@ -3,6 +3,7 @@ function New-IcingaForWindowsRESTApi()
# Allow us to parse the framework global data to this thread # Allow us to parse the framework global data to this thread
param ( param (
$IcingaDaemonData, $IcingaDaemonData,
[string]$Address = '',
$Port, $Port,
$RootFolder, $RootFolder,
$CertFile, $CertFile,

View file

@ -71,6 +71,7 @@ function Start-IcingaWindowsRESTApi()
-Command 'New-IcingaForWindowsRESTApi' ` -Command 'New-IcingaForWindowsRESTApi' `
-CmdParameters @{ -CmdParameters @{
'IcingaDaemonData' = $global:IcingaDaemonData; 'IcingaDaemonData' = $global:IcingaDaemonData;
'Address' = $Address;
'Port' = $Port; 'Port' = $Port;
'RootFolder' = $RootFolder; 'RootFolder' = $RootFolder;
'CertFile' = $CertFile; 'CertFile' = $CertFile;