From ef86b53345905f08b2182ae71749183f6f531245 Mon Sep 17 00:00:00 2001 From: sujinmkang Date: Thu, 18 Aug 2022 14:10:08 -0700 Subject: [PATCH] Fix startswith Attribute error --- scripts/determine-reboot-cause | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/determine-reboot-cause b/scripts/determine-reboot-cause index b4d01d0ffc1f..6d2c0acf0192 100755 --- a/scripts/determine-reboot-cause +++ b/scripts/determine-reboot-cause @@ -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: