Skip to content

Commit ba19ecb

Browse files
authored
Merge pull request kubernetes#123298 from henry118/spell
Fix func name typo
2 parents 921fb0b + c4b88d7 commit ba19ecb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func (m *managerImpl) start() (chan struct{}, error) {
234234
}
235235
}
236236

237-
err = m.aquireInhibitLock()
237+
err = m.acquireInhibitLock()
238238
if err != nil {
239239
return nil, err
240240
}
@@ -287,15 +287,15 @@ func (m *managerImpl) start() (chan struct{}, error) {
287287

288288
m.processShutdownEvent()
289289
} else {
290-
m.aquireInhibitLock()
290+
_ = m.acquireInhibitLock()
291291
}
292292
}
293293
}
294294
}()
295295
return stop, nil
296296
}
297297

298-
func (m *managerImpl) aquireInhibitLock() error {
298+
func (m *managerImpl) acquireInhibitLock() error {
299299
lock, err := m.dbusCon.InhibitShutdown()
300300
if err != nil {
301301
return err

0 commit comments

Comments
 (0)