Skip to content

Commit fd61efd

Browse files
committed
Merge branch 'volume-cloning-feature' of https://github.com/amacaskill/gcp-compute-persistent-disk-csi-driver into volume-cloning-feature
2 parents 2040d64 + f03f8cc commit fd61efd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (gceCS *GCEControllerServer) CreateVolume(ctx context.Context, req *csi.Cre
181181
}
182182

183183
if !ready {
184-
return nil, status.Error(codes.Internal, fmt.Sprintf("CreateVolume disk %v is not ready", volKey))
184+
return nil, status.Error(codes.Internal, fmt.Sprintf("CreateVolume existing disk %v is not ready", volKey))
185185
}
186186

187187
// If there is no validation error, immediately return success
@@ -266,7 +266,7 @@ func (gceCS *GCEControllerServer) CreateVolume(ctx context.Context, req *csi.Cre
266266
return nil, status.Error(codes.Internal, fmt.Sprintf("CreateVolume disk %v had error checking ready status: %v", volKey, err))
267267
}
268268
if !ready {
269-
return nil, status.Error(codes.Internal, fmt.Sprintf("CreateVolume disk %v is not ready", volKey))
269+
return nil, status.Error(codes.Internal, fmt.Sprintf("CreateVolume new disk %v is not ready", volKey))
270270
}
271271

272272
klog.V(4).Infof("CreateVolume succeeded for disk %v", volKey)

0 commit comments

Comments
 (0)