mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
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…
x
Reference in New Issue
Block a user