mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
pkg/kubelet/nodeshutdown/systemd: fix for dbus 5.0.4
dbus 5.0.4 adds StoreProperty method which needs to be implemented for the mock. Fixes the errors like > pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go:88:9: cannot use f.fakeDBusObject (variable of type *fakeDBusObject) as dbus.BusObject value in return statement: missing method StoreProperty Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
12abc3b7c9
commit
029e6b6e3a
@ -71,6 +71,10 @@ func (obj *fakeDBusObject) SetProperty(p string, v interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (obj *fakeDBusObject) StoreProperty(p string, v interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (obj *fakeDBusObject) Destination() string {
|
||||
return ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user