This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/src/sonic-host-services
Vaibhav Hemant Dixit 5becc2ac7e [determine-reboot-cause] Ignore non-hardware reboot cause (#6349)
- Why I did it - Reboot cause prints "Non-Hardware (N/A)" instead of showing the software reboot cause.
The issue is mishandling of hardware reboot cause in determine-reboot-cause script.

- How I did it
Fixed the handling for Non Hardware reboot cause. Ignore if Non-Hardware is present in the hardware_reboot_cause output. Added some code refactoring for simplicity.

- How to verify it - With fix, the hardware reboot cause is ignored (if it is non hw):
2021-01-06 06:19:41 -08:00
..
scripts [determine-reboot-cause] Ignore non-hardware reboot cause (#6349) 2021-01-06 06:19:41 -08:00
tests [determine-reboot-cause] Skip invoking platform code for unit tests for hardware_reboot_cause (#6325) 2020-12-30 17:48:56 -08:00
.gitignore [hostcfgd] Convert to Python 3; Add to sonic-host-services package (#5713) 2020-11-07 12:48:19 -08:00
setup.cfg Add sonic-host-services and sonic-host-services-data packages (#5694) 2020-10-23 09:52:29 -07:00
setup.py [reboot-history] Add reboot history to state db (#5933) 2020-11-20 20:08:18 -08:00