Skip to content

Commit 471a1d3

Browse files
committed
fix typo in GetUnitTypePropertyContext
1 parent 5cd1a48 commit 471a1d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbus/methods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func (c *Conn) SetUnitPropertiesContext(ctx context.Context, name string, runtim
360360

361361
// Deprecated: use GetUnitTypePropertyContext instead
362362
func (c *Conn) GetUnitTypeProperty(unit string, unitType string, propertyName string) (*Property, error) {
363-
return c.GetUnitTypePropertyContext(context.Background(), unitType, unitType, propertyName)
363+
return c.GetUnitTypePropertyContext(context.Background(), unit, unitType, propertyName)
364364
}
365365

366366
// GetUnitTypePropertyContext same as GetUnitTypeProperty with context

0 commit comments

Comments
 (0)