Fix bug in bootstrap file validation

This commit is contained in:
Michael Lumish 2020-08-25 10:05:44 -07:00
parent 7e35657cf1
commit 302b87183e
1 changed files with 1 additions and 1 deletions

View File

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