Skip to content

Commit 5af16b9

Browse files
authored
Merge pull request #1380 from k8s-infra-cherrypick-robot/cherry-pick-1255-to-release-1.8
[release-1.8] Filter out user errors from GetDisk error returned from ControllerPublishVolume
2 parents c296cb9 + bdc84ef commit 5af16b9

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)