From 32ca1f60a7e34906a85bb86eac2d2be487c706fd Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Fri, 10 Jul 2026 20:59:55 +0200 Subject: [PATCH] tenantsync v1.0.0 live fix (client json is {data:[...]}-wrapped) + hub image bump 0.44.0 Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01PSK5g6qYLknKj8u3QAFEr6 --- manifests/hub.yaml | 2 +- scripts/felhom-tenantsync.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/hub.yaml b/manifests/hub.yaml index 4ed198b..4209220 100644 --- a/manifests/hub.yaml +++ b/manifests/hub.yaml @@ -126,7 +126,7 @@ spec: spec: containers: - name: hub - image: gitea.dooplex.hu/admin/felhom-hub:0.43.1 + image: gitea.dooplex.hu/admin/felhom-hub:0.44.0 ports: - containerPort: 8080 name: http diff --git a/scripts/felhom-tenantsync.sh b/scripts/felhom-tenantsync.sh index ac941e0..42f663f 100644 --- a/scripts/felhom-tenantsync.sh +++ b/scripts/felhom-tenantsync.sh @@ -97,8 +97,10 @@ if ! proxmox-backup-manager user list --output-format json | jq -e --arg u "$PBS proxmox-backup-manager user create "$PBS_USER" --comment 'offsite tenancy' >&2 log "created user $PBS_USER" fi +# NOTE: the CLIENT wraps json output as {"data":[...]} (live-proven on ep0); the MANAGER commands +# return bare arrays. `(.data // .)` handles both. if ! PBS_PASSWORD="$ADM" proxmox-backup-client namespace list --repository "$ADMIN_REPO" \ - --output-format json | jq -e --arg ns "$CID" 'any(.[]; .ns == $ns)' >/dev/null; then + --output-format json | jq -e --arg ns "$CID" '(.data // .) | any(.[]; .ns == $ns)' >/dev/null; then PBS_PASSWORD="$ADM" proxmox-backup-client namespace create "$CID" --repository "$ADMIN_REPO" >&2 log "created namespace $CID" fi