Merge pull request #68979 from xing-yang/nodeinfo

Return error from NodeGetInfo
pull/58/head
k8s-ci-robot 2018-09-27 04:48:29 -07:00 committed by GitHub
commit 52b7f6f0c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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
}