From 61d2fd3b241f0d71a631cf728ec964325e7aa438 Mon Sep 17 00:00:00 2001 From: Gemini Bot Date: Tue, 9 Dec 2025 19:12:24 +0000 Subject: [PATCH] fix: Resolve SyntaxError in sync.py due to multiline string literals --- sync.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sync.py b/sync.py index ccb5963..aac5b3a 100644 --- a/sync.py +++ b/sync.py @@ -174,8 +174,7 @@ def generate_zone_file_fwd(ipam_data, plugin_records): header.extend(extra_headers) header.append("") - content = "\n".join(header) + "\n; --- Records --- -" + "\n".join(all_records) + "\n" + content = "\n".join(header) + "\n; --- Records ---\n" + "\n".join(all_records) + "\n" write_atomic(OUTPUT_FILE_FWD, content) log(f"SUCCESS: Forward Zone geschrieben ({len(all_records)} Records).") @@ -219,8 +218,7 @@ def generate_zone_file_rev(ipam_data, plugin_records): header.append("") - content = "\n".join(header) + "\n; --- PTR Records --- -" + "\n".join(ptr_records) + "\n" + content = "\n".join(header) + "\n; --- PTR Records ---\n" + "\n".join(ptr_records) + "\n" write_atomic(OUTPUT_FILE_REV, content) log(f"SUCCESS: Reverse Zone geschrieben ({len(ptr_records)} Records).")