diff --git a/src/system-health/health_checker/sysmonitor.py b/src/system-health/health_checker/sysmonitor.py index dde0b73d1bce..b3f43e447f7b 100755 --- a/src/system-health/health_checker/sysmonitor.py +++ b/src/system-health/health_checker/sysmonitor.py @@ -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']