mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixed CheckCommand callback to fetch executed command
This commit is contained in:
parent
16f5c5fe13
commit
a2afbbe5fc
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ function New-IcingaCheckresult()
|
|||
return $IcingaEnums.IcingaExitCode.Unknown;
|
||||
}
|
||||
|
||||
$CheckCommand = (Get-PSCallStack)[1].Command;
|
||||
$CheckCommand = (Get-PSCallStack)[2].Command;
|
||||
|
||||
# Compile the check / package if not already done
|
||||
$this.check.AssignCheckCommand($CheckCommand);
|
||||
|
|
|
|||
Loading…
Reference in a new issue