mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Use Full Property Name
This commit is contained in:
parent
ac7701af79
commit
821fd28863
1 changed files with 2 additions and 2 deletions
|
@ -29,11 +29,11 @@ func GetLinks(dbusConn dbus.Conn) ([]Link, error) {
|
||||||
name := link[1].(string)
|
name := link[1].(string)
|
||||||
path := link[2].(dbus.ObjectPath)
|
path := link[2].(dbus.ObjectPath)
|
||||||
linkObj := dbusConn.Object("org.freedesktop.network1", path)
|
linkObj := dbusConn.Object("org.freedesktop.network1", path)
|
||||||
carrierState, err := linkObj.GetProperty("CarrierState")
|
carrierState, err := linkObj.GetProperty("org.freedesktop.network1.Link.CarrierState")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("GetProperty CarrierState %w", err)
|
return nil, fmt.Errorf("GetProperty CarrierState %w", err)
|
||||||
}
|
}
|
||||||
operationalState, err := linkObj.GetProperty("OperationalState")
|
operationalState, err := linkObj.GetProperty("org.freedesktop.network1.Link.OperationalState")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("GetProperty OperationalState %w", err)
|
return nil, fmt.Errorf("GetProperty OperationalState %w", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue