mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
parent
8f8a5f7b95
commit
8076a373f5
2 changed files with 14 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ Check Command configuration generated by Icinga for Windows 1.2.0 require Icinga
|
||||||
* [#88](https://github.com/Icinga/icinga-powershell-framework/issues/88) Adds Start/Stop timer functionality for performance analysis
|
* [#88](https://github.com/Icinga/icinga-powershell-framework/issues/88) Adds Start/Stop timer functionality for performance analysis
|
||||||
* [#94](https://github.com/Icinga/icinga-powershell-framework/issues/94) Adds `Namespace` argument for Get-IcingaWindowsInformation for additional filtering
|
* [#94](https://github.com/Icinga/icinga-powershell-framework/issues/94) Adds `Namespace` argument for Get-IcingaWindowsInformation for additional filtering
|
||||||
* [#95](https://github.com/Icinga/icinga-powershell-framework/issues/95) Improves error handling for issues by using `Use-Icinga` initialising or by calling plugins which are not installed
|
* [#95](https://github.com/Icinga/icinga-powershell-framework/issues/95) Improves error handling for issues by using `Use-Icinga` initialising or by calling plugins which are not installed
|
||||||
|
* [#98](https://github.com/Icinga/icinga-powershell-framework/issues/98) Adds support for SecureString as password argument on config generation
|
||||||
|
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -175,6 +175,19 @@ function Get-IcingaCheckCommandConfig()
|
||||||
'order' = $Order;
|
'order' = $Order;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
} elseif ($parameter.type.name -eq 'SecureString') {
|
||||||
|
# Convert out input string as SecureString
|
||||||
|
$Basket.Command[$Data.Name].arguments.Add(
|
||||||
|
[string]::Format('-{0}', $parameter.Name), @{
|
||||||
|
'value' = (
|
||||||
|
[string]::Format(
|
||||||
|
"(ConvertTo-IcingaSecureString '{0}')",
|
||||||
|
$IcingaCustomVariable
|
||||||
|
)
|
||||||
|
)
|
||||||
|
'order' = $Order;
|
||||||
|
}
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
# Default to Object
|
# Default to Object
|
||||||
$Basket.Command[$Data.Name].arguments.Add(
|
$Basket.Command[$Data.Name].arguments.Add(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue