mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
parent
b2ffd317cd
commit
cdab7f0b5a
1 changed files with 7 additions and 0 deletions
|
|
@ -356,6 +356,13 @@ function Add-PowerShellDataList()
|
|||
);
|
||||
|
||||
foreach ($entry in $Arguments) {
|
||||
if ([string]::IsNullOrEmpty($entry)) {
|
||||
Write-IcingaConsoleWarning `
|
||||
-Message 'The plugin argument "{0}" contains the illegal ValidateSet $null which will not be rendered. Please remove it from the arguments list of "{1}"' `
|
||||
-Objects $Name, $Arguments;
|
||||
|
||||
continue;
|
||||
}
|
||||
$Basket.DataList[$Name]['entries'] += @{
|
||||
'entry_name' = $entry;
|
||||
'entry_value' = $entry;
|
||||
|
|
|
|||
Loading…
Reference in a new issue