mirror of https://github.com/grpc/grpc-node.git
Fix bug in bootstrap file validation
This commit is contained in:
parent
7e35657cf1
commit
302b87183e
|
|
@ -171,7 +171,7 @@ function validateNode(obj: any): Node {
|
|||
result.locality.region = obj.locality.region;
|
||||
}
|
||||
if ('zone' in obj.locality) {
|
||||
if (typeof obj.locality.region !== 'string') {
|
||||
if (typeof obj.locality.zone !== 'string') {
|
||||
throw new Error(
|
||||
`node.locality.zone field: expected string, got ${typeof obj.locality
|
||||
.zone}`
|
||||
|
|
|
|||
Loading…
Reference in New Issue