Merge pull request #3377 from Icinga/bugfix/force-check-now-icinga2-api-transport

Send the correct 'force' attribute for 'check now' to the Icinga 2 API transport
This commit is contained in:
lippserd 2018-03-05 10:43:23 +01:00 committed by GitHub
commit c0e8b33b33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class IcingaApiCommandRenderer implements IcingaCommandRendererInterface
$endpoint = 'actions/reschedule-check';
$data = array(
'next_check' => $command->getCheckTime(),
'force_check' => $command->getForced()
'force' => $command->getForced()
);
$this->applyFilter($data, $command->getObject());
return IcingaApiCommand::create($endpoint, $data);