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
|
- name: Check for changes
|
||||||
id: check_changes
|
id: check_changes
|
||||||
run: |
|
run: |
|
||||||
git add nomad_backup/ consul_backup/
|
git add nomad_backup/* consul_backup/*
|
||||||
if git diff --staged --quiet; then
|
if git diff --staged --quiet; then
|
||||||
echo "changes=false" >> $GITHUB_OUTPUT
|
echo "changes=false" >> $GITHUB_OUTPUT
|
||||||
echo "No changes to commit"
|
echo "No changes to commit"
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ class ConsulRestore:
|
|||||||
|
|
||||||
# Restore each key
|
# Restore each key
|
||||||
for file_path in backup_files:
|
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:
|
if not kv_data:
|
||||||
failed_keys.append(str(file_path))
|
failed_keys.append(str(file_path))
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user