Skip to content

Commit

Permalink
T6861: op-mode: add 0 into errno expect list
Browse files Browse the repository at this point in the history
Signed-off-by: Date Huang <[email protected]>
  • Loading branch information
tjjh89017 committed Nov 12, 2024
1 parent 319b050 commit 15ede61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/vyos/utils/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 15ede61

Please sign in to comment.