Skip to content

Commit

Permalink
Revert "[reboiot-cause] Fix a broken symlink of previous-reboot-cause…
Browse files Browse the repository at this point in the history
… file removal issue (#10751)" (#10849)

This reverts commit dee7655.

Co-authored-by: Ubuntu <lizhuhua@lh-dev-vm-01.ziurp3vhri5utcxng1kcl2l1qa.xx.internal.cloudapp.net>
  • Loading branch information
lizhuhuams and Ubuntu authored May 18, 2022
1 parent 0eeb249 commit 9e3f1c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-host-services/scripts/determine-reboot-cause
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def main():
os.makedirs(REBOOT_CAUSE_DIR)

# Remove stale PREVIOUS_REBOOT_CAUSE_FILE if it exists
if os.path.exists(PREVIOUS_REBOOT_CAUSE_FILE) or os.path.islink(PREVIOUS_REBOOT_CAUSE_FILE):
if os.path.exists(PREVIOUS_REBOOT_CAUSE_FILE):
os.remove(PREVIOUS_REBOOT_CAUSE_FILE)

# This variable is kept for future-use purpose. When proc_cmd_line/vendor/software provides
Expand Down

0 comments on commit 9e3f1c7

Please sign in to comment.