diff options
author | Date Huang <tjjh89017@hotmail.com> | 2024-11-12 18:01:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-12 12:01:27 +0200 |
commit | c6a097ee7d9b6d2f4c4b8ee63ca45ccfb6fdda34 (patch) | |
tree | a2cde30463c4f8feb657a43d4674f5cdbde39aef | |
parent | 319b050e0c5755d7efbd95d78158356bfa3873b4 (diff) | |
download | vyos-1x-c6a097ee7d9b6d2f4c4b8ee63ca45ccfb6fdda34.tar.gz vyos-1x-c6a097ee7d9b6d2f4c4b8ee63ca45ccfb6fdda34.zip |
T6861: op-mode: add 0 into errno expect list (#4189)
Signed-off-by: Date Huang <tjjh89017@hotmail.com>
-rw-r--r-- | python/vyos/utils/system.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/utils/system.py b/python/vyos/utils/system.py index a556a8ec4..6c112334b 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) |