sync
This commit is contained in:
2
.github/workflows/backup.yml
vendored
2
.github/workflows/backup.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
||||
- name: Check for changes
|
||||
id: check_changes
|
||||
run: |
|
||||
git add nomad_backup/ consul_backup/
|
||||
git add nomad_backup/* consul_backup/*
|
||||
if git diff --staged --quiet; then
|
||||
echo "changes=false" >> $GITHUB_OUTPUT
|
||||
echo "No changes to commit"
|
||||
|
||||
@@ -142,7 +142,7 @@ class ConsulRestore:
|
||||
|
||||
# Restore each key
|
||||
for file_path in backup_files:
|
||||
kv_data = self.parse_backup_file(file_path)
|
||||
kv_data = self.parse_backup_file(file_path, backup_dir)
|
||||
if not kv_data:
|
||||
failed_keys.append(str(file_path))
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user