From c4b88d72ea0d8f1e384c6566aaf8df87b3db9b7c Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Wed, 14 Feb 2024 19:46:19 +0000 Subject: [PATCH] Fix func name typo Signed-off-by: Henry Wang --- pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go b/pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go index 8469cecdc0e..2eaf0f82dc1 100644 --- a/pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go +++ b/pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go @@ -234,7 +234,7 @@ func (m *managerImpl) start() (chan struct{}, error) { } } - err = m.aquireInhibitLock() + err = m.acquireInhibitLock() if err != nil { return nil, err } @@ -287,7 +287,7 @@ func (m *managerImpl) start() (chan struct{}, error) { m.processShutdownEvent() } else { - m.aquireInhibitLock() + _ = m.acquireInhibitLock() } } } @@ -295,7 +295,7 @@ func (m *managerImpl) start() (chan struct{}, error) { return stop, nil } -func (m *managerImpl) aquireInhibitLock() error { +func (m *managerImpl) acquireInhibitLock() error { lock, err := m.dbusCon.InhibitShutdown() if err != nil { return err