mirror of https://github.com/Icinga/icinga2.git
RedisWriter: Json encode command field command
This commit is contained in:
parent
e41bcbc81c
commit
9308acfcd5
|
@ -901,7 +901,7 @@ bool RedisWriter::PrepareObject(const ConfigObject::Ptr& object, Dictionary::Ptr
|
|||
if (type == CheckCommand::TypeInstance || type == NotificationCommand::TypeInstance || type == EventCommand::TypeInstance) {
|
||||
Command::Ptr command = static_pointer_cast<Command>(object);
|
||||
|
||||
attributes->Set("command", command->GetCommandLine());
|
||||
attributes->Set("command", JsonEncode(command->GetCommandLine()));
|
||||
attributes->Set("timeout", command->GetTimeout());
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue