Skip to content

Commit fec8b86

Browse files
committed
Set container_id from lookup key
For asynchronous lookups, this was masked by setting the id in get_or_create_container(), but synchronous lookups were broken as they tried to request empty container ids from the CRI API.
1 parent e857be7 commit fec8b86

File tree

1 file changed

+1
-0
lines changed
  • userspace/libsinsp/container_engine

1 file changed

+1
-0
lines changed

userspace/libsinsp/container_engine/cri.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ bool cri_async_source::parse_cri(sinsp_container_info *container, const libsinsp
145145
return false;
146146
}
147147

148+
container->m_id = key.m_container_id;
148149
container->m_name = "";
149150
container->m_image = "";
150151
container->m_imageid = "";

0 commit comments

Comments
 (0)