Skip to content

Commit 719626b

Browse files
authored
Merge pull request #1321 from k8s-infra-cherrypick-robot/cherry-pick-1255-to-release-1.9
[release-1.9] Filter out user errors from GetDisk error returned from ControllerPublishVolume
2 parents fc0265b + 6001b97 commit 719626b

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)