Verified Commit b7dda138 authored by Florian Pritz's avatar Florian Pritz
Browse files

systemd-discover: Remove unused unit properties



Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 24012d3a
......@@ -68,7 +68,6 @@ combined = '|'.join(unit_whitelist_regexes)
unit_whitelist_compiled = re.compile('^('+combined+')$')
for u in units:
unit_properties = dbus.Interface(bus.get_object('org.freedesktop.systemd1', u[6]), dbus_interface='org.freedesktop.DBus.Properties')
if unit_whitelist_compiled.match(u[0]):
discovered.append({"{#UNITNAME}": u[0].replace("@", "--AT--")})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment