bundles/sshmon: fix an issue where check_mounts couldn't properly detect systemd mount units
This commit is contained in:
parent
8687cd6bfa
commit
616feb54b2
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ def read_systemd():
|
|||
|
||||
mountunit = line.split()[0]
|
||||
props = check_output(
|
||||
'systemctl show -p FragmentPath,Options,SourcePath,Type,UnitFileState,Where -- ' + mountunit,
|
||||
"systemctl show -p FragmentPath,Options,SourcePath,Type,UnitFileState,Where -- '{}'".format(mountunit),
|
||||
shell=True,
|
||||
).decode('UTF-8')
|
||||
for pline in props.splitlines():
|
||||
|
|
Loading…
Reference in a new issue