Skip to content

Commit

Permalink
Fix issue: ERR healthd: Get unit status determine-reboot-cause-'LoadS…
Browse files Browse the repository at this point in the history
…tate' (#13697) (#13864)
  • Loading branch information
mssonicbld authored Feb 17, 2023
1 parent ef02c73 commit 23e3542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system-health/health_checker/sysmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def get_unit_status(self, event):

sysctl_show = self.run_systemctl_show(event)

load_state = sysctl_show['LoadState']
load_state = sysctl_show.get('LoadState')
if load_state == "loaded":
status = sysctl_show['UnitFileState']
fail_reason = sysctl_show['Result']
Expand Down

0 comments on commit 23e3542

Please sign in to comment.