Attempting to debug snapshot issues

This commit is contained in:
Alan Bridgeman 2025-05-14 10:15:55 -05:00
parent 02ad266448
commit 6e39251a65
2 changed files with 8 additions and 7 deletions

View file

@ -29,6 +29,8 @@ class VaultSnapshotHandler(BaseHTTPRequestHandler):
os.remove(snapshot_file)
return
print(f'Snapshot output: %s', process.stdout.strip())
# Read the snapshot file content
with open(snapshot_file, 'rb') as f:
@ -42,7 +44,6 @@ class VaultSnapshotHandler(BaseHTTPRequestHandler):
with tempfile.NamedTemporaryFile(delete=False) as tmp_file:
snapshot_file = tmp_file.name
print(f"Temporary file created for snapshot: {snapshot_file}")
try:
snapshot_data = self.create_and_serve_snapshot(snapshot_file)