Skip to content

Commit

Permalink
cmu: Match by image not imageID by default
Browse files Browse the repository at this point in the history
When matching parser rules, match against image, not imageID,
but fallback to imageID just in case.

Signed-off-by: David Weinehall <[email protected]>
  • Loading branch information
dweineha committed Aug 29, 2023
1 parent fbd87a9 commit 4b0593e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmu
Original file line number Diff line number Diff line change
Expand Up @@ -8479,7 +8479,7 @@ def containerinfoloop(stdscr: curses.window, container, kind, obj, **kwargs):
if deep_get(container_status, DictPath("name")) == containername:
break
if container_status is not None:
image = deep_get(container_status, DictPath("imageID"), "")
image = deep_get_with_fallback(container_status, [DictPath("image"), DictPath("imageID")], "")
else:
image = "<unavailable>"

Expand Down

0 comments on commit 4b0593e

Please sign in to comment.