From f46525aa743b005b18c190bf2e54112f3cc832e6 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Mon, 14 Jun 2021 11:21:31 -0400 Subject: [PATCH] Remove error wrap from logs --- .../k8s.io/legacy-cloud-providers/vsphere/shared_datastore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/legacy-cloud-providers/vsphere/shared_datastore.go b/staging/src/k8s.io/legacy-cloud-providers/vsphere/shared_datastore.go index 603ecde9b7515..8db2e163cc11a 100644 --- a/staging/src/k8s.io/legacy-cloud-providers/vsphere/shared_datastore.go +++ b/staging/src/k8s.io/legacy-cloud-providers/vsphere/shared_datastore.go @@ -153,7 +153,7 @@ func (shared *sharedDatastore) getNodeHosts(ctx context.Context, nodes []NodeInf var vmoList []mo.VirtualMachine err := pc.Retrieve(ctx, vmRefs, []string{nameProperty, runtimeHost}, &vmoList) 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 } var hostMoList []mo.HostSystem @@ -169,7 +169,7 @@ func (shared *sharedDatastore) getNodeHosts(ctx context.Context, nodes []NodeInf pc = property.DefaultCollector(nodeInfo.dataCenter.Client()) err = pc.Retrieve(ctx, hostRefs, []string{summary}, &hostMoList) 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 } var hosts []hostInfo