This commit is contained in:
parent
ef02c73a03
commit
23e3542b08
@ -273,7 +273,7 @@ class Sysmonitor(ProcessTaskBase):
|
|||||||
|
|
||||||
sysctl_show = self.run_systemctl_show(event)
|
sysctl_show = self.run_systemctl_show(event)
|
||||||
|
|
||||||
load_state = sysctl_show['LoadState']
|
load_state = sysctl_show.get('LoadState')
|
||||||
if load_state == "loaded":
|
if load_state == "loaded":
|
||||||
status = sysctl_show['UnitFileState']
|
status = sysctl_show['UnitFileState']
|
||||||
fail_reason = sysctl_show['Result']
|
fail_reason = sysctl_show['Result']
|
||||||
|
Reference in New Issue
Block a user