Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:13697] Fix issue: ERR healthd: Get unit status determine-reboot-cause-'LoadState' #13864

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

mssonicbld
Copy link
Collaborator

No description provided.

…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
@mssonicbld
Copy link
Collaborator Author

Original PR: #13697

@mssonicbld mssonicbld merged commit 23e3542 into sonic-net:202211 Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants