From 15ede61b45f7e061e8281b8d3e002a68d98a88b4 Mon Sep 17 00:00:00 2001 From: Date Huang Date: Tue, 12 Nov 2024 14:30:13 +0800 Subject: [PATCH] T6861: op-mode: add 0 into errno expect list Signed-off-by: Date Huang --- python/vyos/utils/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/vyos/utils/system.py b/python/vyos/utils/system.py index a556a8ec4e..6c112334bd 100644 --- a/python/vyos/utils/system.py +++ b/python/vyos/utils/system.py @@ -145,5 +145,5 @@ def get_secure_boot_state() -> bool: from vyos.utils.boot import is_uefi_system if not is_uefi_system(): return False - tmp = cmd('mokutil --sb-state', expect=[255]) + tmp = cmd('mokutil --sb-state', expect=[0, 255]) return bool('enabled' in tmp)