Skip to content

Commit

Permalink
Cast base schema version to int
Browse files Browse the repository at this point in the history
Or all our comparisons will fail later and nodes can't start.
  • Loading branch information
joshuaboniface committed Jun 30, 2021
1 parent fe0a1d5 commit 39e82ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-daemon/pvcnoded/Daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def readConfig(pvcnoded_config_file, myhostname):
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([
Expand Down

0 comments on commit 39e82ee

Please sign in to comment.