Skip to content

Commit

Permalink
fixup! Cluster-backup format version "3"
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePrincipi committed Dec 18, 2024
1 parent c578945 commit 644441d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ VERSION = "3"
dump = { 'version': VERSION, 'modules': {}, 'vpn': {}, 'cluster': { 'node_count': 0, 'subscription': {}, 'apply_updates': {}, 'repository': {}, 'backup': {}, 'backup_repository': {}, 'user_domain': { 'ldap': {} },'override': {'modules': {} } }, 'traefik': {} }

# cluster: number of nodes
dump['cluster']['node_count'] = len(set(rdb.hvals('cluster/module_node'))
dump['cluster']['node_count'] = len(set(rdb.hvals('cluster/module_node')))

# cluster: subscription
dump['cluster']['subscription'] = rdb.hgetall('cluster/subscription') or {}
Expand Down

0 comments on commit 644441d

Please sign in to comment.