Unverified Commit 52b7f6f0 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #68979 from xing-yang/nodeinfo

Return error from NodeGetInfo
parents 63fd42b1 0a140867
......@@ -95,6 +95,10 @@ func (c *csiDriverClient) NodeGetInfo(ctx context.Context) (
nodeClient := csipb.NewNodeClient(conn)
res, err := nodeClient.NodeGetInfo(ctx, &csipb.NodeGetInfoRequest{})
if err != nil {
return "", 0, nil, err
}
return res.GetNodeId(), res.GetMaxVolumesPerNode(), res.GetAccessibleTopology(), nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment