Skip to content

Commit 6001b97

Browse files
amacaskillk8s-infra-cherrypick-robot
authored and
k8s-infra-cherrypick-robot
committed
Filter out user errors from GetDisk error returned from ControllerPublishVolume
1 parent fc0265b commit 6001b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gce-pd-csi-driver/controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ func (gceCS *GCEControllerServer) executeControllerPublishVolume(ctx context.Con
584584
if gce.IsGCENotFoundError(err) {
585585
return nil, status.Errorf(codes.NotFound, "Could not find disk %v: %v", volKey.String(), err.Error()), diskType
586586
}
587-
return nil, status.Errorf(codes.Internal, "Failed to getDisk: %v", err.Error()), diskType
587+
return nil, common.LoggedError("Failed to getDisk: ", err), diskType
588588
}
589589
instanceZone, instanceName, err := common.NodeIDToZoneAndName(nodeID)
590590
if err != nil {

0 commit comments

Comments
 (0)