From 644441d4a8c779ca41f80377e24ee6c2e44f2068 Mon Sep 17 00:00:00 2001 From: Davide Principi Date: Wed, 18 Dec 2024 11:55:51 +0100 Subject: [PATCH] fixup! Cluster-backup format version "3" --- core/imageroot/var/lib/nethserver/cluster/bin/cluster-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/imageroot/var/lib/nethserver/cluster/bin/cluster-backup b/core/imageroot/var/lib/nethserver/cluster/bin/cluster-backup index d1387e76a..7004c0b44 100755 --- a/core/imageroot/var/lib/nethserver/cluster/bin/cluster-backup +++ b/core/imageroot/var/lib/nethserver/cluster/bin/cluster-backup @@ -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 {}