Fix issue: ERR healthd: Get unit status determine-reboot-cause-'LoadState' (#13697) (#13864)

This commit is contained in:
mssonicbld 2023-02-18 06:16:46 +08:00 committed by GitHub
parent ef02c73a03
commit 23e3542b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,7 +273,7 @@ class Sysmonitor(ProcessTaskBase):
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']