From 19977a9b3246b3c0458bbebbfd1671f34ade3dbb Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 28 Nov 2023 15:30:59 +0100 Subject: [PATCH] cli-pretty: fix fallback version and datetime for `show software` [skip ci] Signed-off-by: Joachim Wiberg --- board/netconf/rootfs/lib/infix/cli-pretty | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/netconf/rootfs/lib/infix/cli-pretty b/board/netconf/rootfs/lib/infix/cli-pretty index 0687dd9b..0750e55b 100755 --- a/board/netconf/rootfs/lib/infix/cli-pretty +++ b/board/netconf/rootfs/lib/infix/cli-pretty @@ -89,8 +89,8 @@ class Software: self.type = data.get('class', '') self.hash = data.get('sha256', '') self.state = data.get('state', '') - self.version = get_json_data(None, self.data, 'bundle', 'version') - self.date = get_json_data(None, self.data, 'installed', 'datetime') + self.version = get_json_data('', self.data, 'bundle', 'version') + self.date = get_json_data('', self.data, 'installed', 'datetime') def is_rootfs(self): """True if bundle type is 'rootfs'"""