Skip to content

Commit 65395f6

Browse files
author
Luca Bruno
authored
Merge pull request #356 from byxorna/gabe/fix-typo
fix typo in GetUnitTypePropertyContext
2 parents 5cd1a48 + 471a1d3 commit 65395f6

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)