Skip to content

Commit 01481d3

Browse files
olekzablk8s-infra-cherrypick-robot
authored andcommitted
Yet another linter fix
1 parent 75934c2 commit 01481d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cache/queue/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,10 @@ func (m *Manager) AddOrUpdateWorkload(w *kueue.Workload, opts ...workload.InfoOp
451451

452452
func (m *Manager) AddOrUpdateWorkloadWithoutLock(w *kueue.Workload, opts ...workload.InfoOption) error {
453453
if !workload.IsActive(w) {
454-
return fmt.Errorf("workload %q is inactive and can't be added to a LocalQueue", w.ObjectMeta.Name)
454+
return fmt.Errorf("workload %q is inactive and can't be added to a LocalQueue", w.Name)
455455
}
456456
if workload.HasQuotaReservation(w) {
457-
return fmt.Errorf("workload %q already has quota reserved and can't be added to a LocalQueue", w.ObjectMeta.Name)
457+
return fmt.Errorf("workload %q already has quota reserved and can't be added to a LocalQueue", w.Name)
458458
}
459459
qKey := queue.KeyFromWorkload(w)
460460
q := m.localQueues[qKey]

0 commit comments

Comments
 (0)