parent
eb4813f1ca
commit
03f06ca2e8
1 changed files with 19 additions and 16 deletions
|
@ -514,6 +514,7 @@ class LinuxService(Service):
|
|||
value_buffer = []
|
||||
status_dict = {}
|
||||
for line in out.splitlines():
|
||||
if '=' in line:
|
||||
if not key:
|
||||
key, value = line.split('=', 1)
|
||||
# systemd fields that are shell commands can be multi-line
|
||||
|
@ -535,6 +536,8 @@ class LinuxService(Service):
|
|||
key = None
|
||||
else:
|
||||
value_buffer.append(value)
|
||||
else:
|
||||
value_buffer.append(value)
|
||||
|
||||
return status_dict
|
||||
|
||||
|
|
Loading…
Reference in a new issue