Skip to content

Commit 81da041

Browse files
authored
Merge pull request #268 from muesli/dbus-requirement-comment
dbus: Added systemd requirement note to ListUnitsByNames
2 parents 7633a18 + 24adb78 commit 81da041

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dbus/methods.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ func (c *Conn) ListUnitsByPatterns(states []string, patterns []string) ([]UnitSt
313313
// names and returns an UnitStatus array. Comparing to ListUnitsByPatterns
314314
// method, this method returns statuses even for inactive or non-existing
315315
// units. Input array should contain exact unit names, but not patterns.
316+
// Note: Requires systemd v230 or higher
316317
func (c *Conn) ListUnitsByNames(units []string) ([]UnitStatus, error) {
317318
return c.listUnitsInternal(c.sysobj.Call("org.freedesktop.systemd1.Manager.ListUnitsByNames", 0, units).Store)
318319
}

0 commit comments

Comments
 (0)