RedisWriter: Json encode command field command

This commit is contained in:
Noah Hilverling 2019-07-24 15:47:40 +02:00 committed by Michael Friedrich
parent e41bcbc81c
commit 9308acfcd5
1 changed files with 1 additions and 1 deletions

View File

@ -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;