Do not try to initialize client in simple-offsets

sec_osd_msgr
Vitaliy Filippov 2021-12-15 02:07:27 +03:00
parent dd74c5ce1b
commit 3f33095fd7
1 changed files with 4 additions and 0 deletions

View File

@ -305,6 +305,10 @@ void cli_tool_t::run(json11::Json cfg)
fprintf(stderr, "unknown command: %s\n", cmd[0].string_value().c_str());
exit(1);
}
if (action_cb == NULL)
{
return;
}
color = !cfg["no-color"].bool_value();
json_output = cfg["json"].bool_value();
iodepth = cfg["iodepth"].uint64_value();