[enh] get active status of service

This commit is contained in:
Laurent Peuch 2018-05-11 04:49:43 +02:00
parent 929515ba94
commit 1b774527d8

View file

@ -217,6 +217,7 @@ def service_status(names=[]):
result[name] = {
'status': str(status.get("SubState", "unknown")),
'loaded': str(status.get("LoadState", "unknown")),
'active': str(status.get("ActiveState", "unknown")),
'description': str(status.get("Description", "")),
}