From 4b0593eaf64d74a0057d9cc8028b47a9a8a23a53 Mon Sep 17 00:00:00 2001 From: David Weinehall Date: Tue, 29 Aug 2023 15:21:59 +0300 Subject: [PATCH] cmu: Match by image not imageID by default When matching parser rules, match against image, not imageID, but fallback to imageID just in case. Signed-off-by: David Weinehall --- cmu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmu b/cmu index 947742a0..3447e70e 100755 --- a/cmu +++ b/cmu @@ -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 = ""