mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #102845 from gnufied/remove-error-wrap-from-log
Remove error wrap from logs
This commit is contained in:
commit
28e0c4f5d1
@ -153,7 +153,7 @@ func (shared *sharedDatastore) getNodeHosts(ctx context.Context, nodes []NodeInf
|
|||||||
var vmoList []mo.VirtualMachine
|
var vmoList []mo.VirtualMachine
|
||||||
err := pc.Retrieve(ctx, vmRefs, []string{nameProperty, runtimeHost}, &vmoList)
|
err := pc.Retrieve(ctx, vmRefs, []string{nameProperty, runtimeHost}, &vmoList)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Errorf("SharedHost.getNodeHosts: unable to fetch vms from datacenter %s: %w", nodeInfo.dataCenter.String(), err)
|
klog.Errorf("SharedHost.getNodeHosts: unable to fetch vms from datacenter %s: %v", nodeInfo.dataCenter.String(), err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
var hostMoList []mo.HostSystem
|
var hostMoList []mo.HostSystem
|
||||||
@ -169,7 +169,7 @@ func (shared *sharedDatastore) getNodeHosts(ctx context.Context, nodes []NodeInf
|
|||||||
pc = property.DefaultCollector(nodeInfo.dataCenter.Client())
|
pc = property.DefaultCollector(nodeInfo.dataCenter.Client())
|
||||||
err = pc.Retrieve(ctx, hostRefs, []string{summary}, &hostMoList)
|
err = pc.Retrieve(ctx, hostRefs, []string{summary}, &hostMoList)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Errorf("SharedHost.getNodeHosts: unable to fetch hosts from datacenter %s: %w", nodeInfo.dataCenter.String(), err)
|
klog.Errorf("SharedHost.getNodeHosts: unable to fetch hosts from datacenter %s: %v", nodeInfo.dataCenter.String(), err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
var hosts []hostInfo
|
var hosts []hostInfo
|
||||||
|
Loading…
Reference in New Issue
Block a user