upd: enhance getting node cidr check

master
kvaps 2018-08-05 01:03:01 +02:00 committed by GitHub
parent 6738cc83b0
commit 65dce068f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ log "Starting retriving parameters"
POD_NETWORK="${POD_NETWORK:-10.244.0.0/16}"
NODE_NETWORK="$(getnodecidr "${NODE_NAME}")"
if [ "$NODE_NETWORK" = "null" ]; then
if [ -z "$NODE_NETWORK" ] || [ "$NODE_NETWORK" = "null" ]; then
error "Failed to get node cidr"
fi