Skip to content

Commit ea0e384

Browse files
committed
logout once per datastore (closes issue #1)
1 parent ee5e32d commit ea0e384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agents/plugins/proxmox_bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ jq -r '.[].name' $TMP_DATASTORES | while read -r name; do
8686
command_section -p "$name" \
8787
"proxmox-backup-client status" --repository "$PBS_REPO:$name" \
8888
$OUTPUT_FORMAT
89+
proxmox-backup-client logout --repository "$PBS_REPO:$name" > /dev/null 2>&1
8990
done
9091

9192
cat $TMP_UPIDS | while read -r upid; do
9293
command_section -P "sed -n '/^Removed garbage: /,\$p'" -p "$upid" \
9394
"proxmox-backup-manager task log" "$upid"
9495
done
9596

96-
proxmox-backup-client logout --repository "$PBS_REPO"
9797
export PBS_PASSWORD=
9898

9999
printf "$TMP_GC_FILES" >> $TMP_GC_FILES

0 commit comments

Comments
 (0)