Skip to content

Commit

Permalink
fix(userspace/libsinsp): properly set successful lookup state when pa…
Browse files Browse the repository at this point in the history
…rsing old container json events.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP authored and poiana committed Apr 29, 2024
1 parent 32183d4 commit d77ceb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions userspace/libsinsp/parsers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5125,6 +5125,11 @@ void sinsp_parser::parse_container_json_evt(sinsp_evt *evt)
container_info->set_lookup_status(sinsp_container_lookup::state::FAILED);
}
}
else
{
// Fallback at successful state
container_info->set_lookup_status(sinsp_container_lookup::state::SUCCESSFUL);
}

const Json::Value& created_time = container["created_time"];
if(check_int64_json_is_convertible(created_time, "created_time"))
Expand Down

0 comments on commit d77ceb1

Please sign in to comment.