Skip to content

Commit

Permalink
T6861: op-mode: add 0 into errno expect list (#4189)
Browse files Browse the repository at this point in the history
Signed-off-by: Date Huang <[email protected]>
  • Loading branch information
tjjh89017 authored Nov 12, 2024
1 parent 319b050 commit c6a097e
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 c6a097e

Please sign in to comment.