You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #808 from Icinga:fix/config_compiler_always_using_switchparameter
Fix: Config compiler to always use Switchparameter for switch argument
Fixes Icinga for Windows config compiler to always use `Switchparameter` for `switch` data types, in case the documentation is not written properly for the plugin
Copy file name to clipboardExpand all lines: doc/100-General/10-Changelog.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
17
17
18
18
### Bugfixes
19
19
20
+
*[#753](https://github.com/Icinga/icinga-powershell-framework/issues/753) Fixes Icinga for Windows config compiler to always use `Switchparameter` for `switch` data types, in case the documentation is not written properly for the plugin
20
21
*[#781](https://github.com/Icinga/icinga-powershell-framework/issues/781) Fixes Icinga for Windows being stuck during installation while fetching service information over CIM-Instances, if other services are frozen, blocking the CIM-Request
21
22
*[#784](https://github.com/Icinga/icinga-powershell-framework/issues/784) Fixes Icinga for Windows threshold comparison which wrongly compared warning/critical thresholds for non-range values (like Match)
22
23
*[#785](https://github.com/Icinga/icinga-powershell-framework/issues/785) Fixes Icinga for Windows freezing during loading in case the `config.json` is empty
Write-IcingaConsoleError'The generated custom variable name for the argument "{0}" and plugin "{1}" is too long. Custom variables are generated by combining the check function name, the datatype of the argument as well as the argument name itself. Please shorten your argument name and/or the check function name. The maximum size of generated custom variables is 64 digits. Current argument size: "{2}", generated custom variable name: "{3}"'-Objects $parameter.Name,$check, ($IcingaCustomVariable.Length-2),$IcingaCustomVariable.Replace('$','');
@@ -245,7 +251,7 @@ function Get-IcingaCheckCommandConfig()
245
251
}
246
252
247
253
# Add arguments to a given command
248
-
if ($parameter.type.name-eq'SwitchParameter') {
254
+
if ($parameter.type.name-eq'SwitchParameter'-Or$parameter.type.name-eq'Switch') {
249
255
$Basket.Command[$check].arguments.Add(
250
256
[string]::Format('-{0}',$parameter.Name),@{
251
257
'set_if'=$IcingaCustomVariable;
@@ -317,7 +323,7 @@ function Get-IcingaCheckCommandConfig()
317
323
);
318
324
}
319
325
320
-
if ($parameter.type.name-eq'SwitchParameter') {
326
+
if ($parameter.type.name-eq'SwitchParameter'-Or$parameter.type.name-eq'Switch') {
0 commit comments