Merge pull request #3485 from Icinga/fix/persistent-acks

Respect persistent when acknowledging over API
This commit is contained in:
Eric Lippmann 2018-06-28 11:39:33 +02:00 committed by GitHub
commit fc2374d7c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -180,7 +180,8 @@ class IcingaApiCommandRenderer implements IcingaCommandRendererInterface
'author' => $command->getAuthor(),
'comment' => $command->getComment(),
'sticky' => $command->getSticky(),
'notify' => $command->getNotify()
'notify' => $command->getNotify(),
'persistent' => $command->getPersistent()
);
if ($command->getExpireTime() !== null) {
$data['expiry'] = $command->getExpireTime();