Skip to content

Commit bdc84ef

Browse files
amacaskillk8s-infra-cherrypick-robot
authored andcommitted
Filter out user errors from GetDisk error returned from ControllerPublishVolume
1 parent 2549e3b commit bdc84ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ func (gceCS *GCEControllerServer) executeControllerPublishVolume(ctx context.Con
570570
if gce.IsGCENotFoundError(err) {
571571
return nil, status.Errorf(codes.NotFound, "Could not find disk %v: %v", volKey.String(), err.Error()), diskType
572572
}
573-
return nil, status.Errorf(codes.Internal, "Failed to getDisk: %v", err.Error()), diskType
573+
return nil, common.LoggedError("Failed to getDisk: ", err), diskType
574574
}
575575
instanceZone, instanceName, err := common.NodeIDToZoneAndName(nodeID)
576576
if err != nil {

0 commit comments

Comments
 (0)