Skip to content

Commit b26e244

Browse files
authored
Improve error msg in GetNodeIPs() (fix issue #321) (#322)
Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
1 parent 6d40928 commit b26e244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/compute-domain-kubelet-plugin/computedomain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ func (m *ComputeDomainManager) GetNodeIPs(ctx context.Context, cdUID string) ([]
325325
}
326326

327327
if cd.Status.Nodes == nil {
328-
return nil, fmt.Errorf("error getting status of nodes in ComputeDomain: %w", err)
328+
return nil, fmt.Errorf("no nodes set for ComputeDomain")
329329
}
330330

331331
if len(cd.Status.Nodes) != cd.Spec.NumNodes {

0 commit comments

Comments
 (0)