Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue: ERR healthd: Get unit status determine-reboot-cause-'LoadS…
…tate' (sonic-net#13697) - Why I did it Fix issue: ERR healthd: Get unit status determine-reboot-cause-'LoadState'. The error log is only seen on shutdown flow such as fast-reboot/warm-reboot. In shutdown flow, 'LoadState' might not be available in systemctl status output, using [] might cause a KeyError. - How I did it Use dict.get instead of [] - How to verify it Manual test
- Loading branch information