Cast base schema version to int

Or all our comparisons will fail later and nodes can't start.
This commit is contained in:
Joshua Boniface 2021-06-30 09:40:33 -04:00
parent fe0a1d582a
commit 39e82ee426
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ logger.out('Validating Zookeeper schema', state='i')
try:
node_schema_version = int(zkhandler.read(('node.data.active_schema', myhostname)))
except Exception:
node_schema_version = zkhandler.read('base.schema.version')
node_schema_version = int(zkhandler.read('base.schema.version'))
if node_schema_version is None:
node_schema_version = 0
zkhandler.write([