We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d127a8 + 73dd364 commit 1ef7120Copy full SHA for 1ef7120
lib/core/tools/ConvertTo-IcingaPowerShellArguments.psm1
@@ -25,7 +25,12 @@ function ConvertTo-IcingaPowerShellArguments()
25
return @{ };
26
}
27
28
- $CommandHelp = Get-Help -Name $Command -Full;
+ $CommandHelp = Get-Help -Name $Command -Full -ErrorAction SilentlyContinue;
29
+
30
+ # Ensure we do not cause exceptions along the border in case the plugin is not installed
31
+ if ($null -eq $CommandHelp) {
32
+ return @{ };
33
+ }
34
35
[hashtable]$IcingaArguments = @{ };
36
[int]$ArgumentIndex = 0;
0 commit comments