Skip to content

Commit

Permalink
Fix startswith Attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
sujinmkang committed Aug 18, 2022
1 parent 8a630bb commit ef86b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/determine-reboot-cause
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def determine_reboot_cause():
# the software_reboot_cause will be treated as the reboot cause if it's not unknown
# otherwise, the cmdline_reboot_cause will be treated as the reboot cause if it's not none
# Else the software_reboot_cause will be treated as the reboot cause
if not hardware_reboot_cause.startswith(REBOOT_CAUSE_NON_HARDWARE):
if REBOOT_CAUSE_NON_HARDWARE not in hardware_reboot_cause:
previous_reboot_cause = hardware_reboot_cause
# Check if any software reboot was issued before this hardware reboot happened
if software_reboot_cause is not REBOOT_CAUSE_UNKNOWN:
Expand Down

0 comments on commit ef86b53

Please sign in to comment.