Skip to content

Commit d77ceb1

Browse files
FedeDPpoiana
authored andcommitted
fix(userspace/libsinsp): properly set successful lookup state when parsing old container json events.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
1 parent 32183d4 commit d77ceb1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

userspace/libsinsp/parsers.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5125,6 +5125,11 @@ void sinsp_parser::parse_container_json_evt(sinsp_evt *evt)
51255125
container_info->set_lookup_status(sinsp_container_lookup::state::FAILED);
51265126
}
51275127
}
5128+
else
5129+
{
5130+
// Fallback at successful state
5131+
container_info->set_lookup_status(sinsp_container_lookup::state::SUCCESSFUL);
5132+
}
51285133

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

0 commit comments

Comments
 (0)